From kodeboard, 4 Years ago, written in JavaScript.
Embed
  1. $("a[href='#top']").click(function() {
  2.   $("html, body").animate({ scrollTop: 0 }, "slow");
  3.   return false;
  4. });
  5.  

You must login to reply or comment on this code.