<pre>$("html,body").animate({scrollTop : pos-100} , 500);</pre>
i solved it myself you should enter the following code after the animate code $(a).click(function(){ $("body").animate({"scrollTop":0},500); return false; }); this way the a tag won't look at it's "href" attribute
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)