收集篇(已测)-- <html><head> <script type="text/javascript"> var currentPosition,timer; var speed=10; function GoTop(){ timer=setInterval("runToTop()",1); } function runToTop(){ currentPosition=document.documentElement.scro…
用JS操作,body元素的scrollTop var getTop = document.getElementById("get-top"); var head = document.getElementById("head"); getTop.onclick = function () { var time = setInterval(function () { document.body.scrollTop = document.body.scrollTop -…