var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",30);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrollTop)
sc();
}
document.οnmοusedοwn=sc
document.οndblclick=initialize
转载于:https://www.cnblogs.com/CB/archive/2005/10/17/256194.html