Scroll to scrolls to top and not away from page
I have installed the scrollto plugin which works fine.
The problem I have now is that when I click on an external link i.e
http://google.com it just ignores it and scrolls to the top of my page instead?
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Manoucher Products</title>
- <link href="style.css" rel="stylesheet" type="text/css" />
- <link href="sidemenu.css" rel="stylesheet" type="text/css" />
- <!--[if IE]>
- <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
-
- <style type="text/css">
- .clear {
- zoom: 1;
- display: block;
- }
- </style>
-
- <![endif]-->
- </head>
- <body >
- <section id="page"> <!-- Defining the #page section with the section tag -->
- <div class="scroll"></div>
- <header> <!-- Defining the header section of the page with the appropriate tag -->
-
- <hgroup>
- </hgroup>
-
-
- </header>
-
- <section id="articles"> <!-- A new section with the articles -->
-
-
-
-
- <div id="sidebar">
- <nav id="rightsidemenu" class="clear"> <!-- The nav link semantically marks your main site navigation -->
- <ul id="buts">
- <li><a href="/#1" class="but_home"></a></li>
- <li><a href="#1" class="but_history"></a></li>
- <li><a href="/products" class="but_products"></a></li>
- <li><a href="/news/news.html" class="but_news"></a></li>
- <li><a href="http://manoucher.net/commingsoon/shopsoon.html" class="but_shop"></a></li>
- <li><a rel="shadowbox" href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=manoucher+foods&aq=&sll=37.0625,-95.677068&sspn=53.432436,79.013672&ie=UTF8&hq=manoucher+foods&hnear=&ll=43.72854,-79.526255&spn=53.30452,112.5&z=4&iwloc=A&cid=7380407805238199153&output=embed" class="but_find"></a></li>
- <li><a href="/contact" class="smcf-link"></a></li>
- <li><a href="/blog" class="but_talk"></a></li>
- <li><a href="#8" class="but_gallery"></a></li>
- </ul>
- </nav>
- </div>
-
-
-
-
-
-
- <article id="article_products">
- <p><img src="products-home.jpg" alt="" align="middle" /></p>
- </article>
- <article id="article_breads">
-
-
- <p> <img src="ourbreads.jpg" alt="" align="middle" />
- <div id="more_pizza">
- <li><a class="morebutton" href=""></a></li>
- </div>
- </p>
- </article>
- <article id="article_pizzas">
- <p> <img src="ourpizzas.jpg" alt="" align="middle" />
- <div id="more_bread">
- <li><a class="morebutton" href=""></a></li>
- </div>
- </p>
- </article>
- <article id="article_other">
- <p> <img src="otherproducts.jpg" alt="" align="middle" /></p>
- </article>
- </section>
- <footer> <!-- Marking the footer section -->
-
- <nav id="footernav" class="clear"> <!-- The nav link semantically marks your main site navigation -->
-
- <a id="breadimglink" href="#article_breads">Breads</a>
- <a id="pizzaimglink" href="#article_pizzas">Pizzas</a>
- <a id="otherimglink" href="#article_other">Other</a>
-
- </nav>
-
- <a href="#" class="up">Go UP</a>
- <p>Copyright 2011 - manoucher.com</p> <!-- Change the copyright notice -->
- </footer>
-
- </section> <!-- Closing the #page section -->
- <!-- JavaScript Includes -->
-
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
- <script src="jquery.scrollTo-1.4.2/jquery.scrollTo.js"></script>
- <script src="script.js"></script>
- <script type='text/javascript' src='js/resolution-test.js'></script>
-
-
- <!-- JavaScript Fade Menu -->
- <script type="text/javascript">
- $(document).ready(function() {
- $('.but_home,.but_history,.but_products,.but_news,.but_shop,.but_find,.smcf-link,.but_talk,.but_gallery').append('<span class="hover"></span>').each(function () {
- var $span = $('> span.hover', this).css('opacity', 0);
- $(this).hover(function () {
- $span.stop().fadeTo(500, 1);
- }, function () {
- $span.stop().fadeTo(500, 0);
- });
- });
- });
- </script>
-
-
-
-
-
- </body>
- </html>