Copy code The code is as follows: <br>var currentpos,timer; <br><br>function initialize() <br>{ <br>timer=setInterval("scrollwindow()",10); <br>} <br>function sc(){ <br>clearInterval(timer); <br>} <br>function scrollwindow() <br>{ <br>currentpos=document.body.scrollTop; <br>window.scroll(0, currentpos); <br>if (currentpos != document.body. scrollTop) <br>sc(); <br>} <br>document.onmousedown=sc Yes, you can view the source file<br> </div>