common.js

//Кнопка "Наверх" //Документация: //http://api.jquery.com/scrolltop/ //http://api.jquery.com/animate/ $("#top").click(function () { $("body, html").animate({ scrollTop: 0 }, 800); return false; });
scrollTop

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.