<! DOCTYPE html>"Http://libs.baidu.com/jquery/1.9.0/jquery.js"></script> "A1">-</button> <input type=" Number"Id="T1"Disabled="Disabled"Value="0"style="Text-align:center;"> <button id="J1">+</button> "A2">-</button> <input type=" Number"Id="T2"Disabled="Disabled"Value="0"style="Text-align:center;"> <button id="J2">+</button> <div style="height:1500px;"> </div> <script>varCurrentpos,timer;function Initialize () {Timer=setinterval ("ScrollWindow ()",3);} function SC () {clearinterval (timer);} function ScrollWindow () {if(DOCUMENT.BODY.SCROLLTOP) {//when you add a DTD header, the Document.body.scrollTop value is always 0, and you determinecurrentpos=Document.body.scrollTop; Window.Scroll (0,++Currentpos); if(Currentpos! =Document.body.scrollTop) {SC (); } } Else{Currentpos=Document.documentElement.scrollTop; Window.Scroll (0,++Currentpos); if(Currentpos! =Document.documentElement.scrollTop) {SC (); }}}document.onmousedown=Scdocument.ondblclick=Initialize</script> </body>JS Mouse Double-click to stop the scroll