HTML:
<a href="#" class="top">Back to Top</a>
Javascript:
$('a.top').click(function(){ $('html, body').animate({scrollTop: '0px'}, 300); return false; });
Never allow your career to be stagnant; whether you want a promotion, a better compensation or a more satisfying job, you’ve the power to make it happen!
HTML:
<a href="#" class="top">Back to Top</a>
Javascript:
$('a.top').click(function(){ $('html, body').animate({scrollTop: '0px'}, 300); return false; });
Comments are closed.
Thanks for userful topic. :D