平滑的返回顶部js代码
内容不超过屏幕高度是不会显示的

XML/HTML Code
- <button class="gototop"><span>返回顶部</span></button>
JavaScript Code
- <script type="text/javascript">
- $(function(){
- $(".gototop").gototop({
- position : 0,
- duration : 1250,
- visibleAt : 300,
- classname : "isvisible"
- });
- });
- </script>
原文地址:http://www.freejs.net/article_jquerywenzi_861.html