HTML:
<a href="#" class="top">Back to Top</a>
Javascript:
$('a.top').click(function(){ $('html, body').animate({scrollTop: '0px'}, 300); return false; });
Books, worksheets, templates, frameworks and other useful resources for Chief Technology Officers (CTOs), VPs of Engineering & Technology Directors
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