:怎樣在網(wǎng)頁中使用自動滾屏

熱心網(wǎng)友

雙擊自動滾屏代碼 var currentpos,timer; function initialize() { timer=setInterval("scrollwindow()",10);} function sc(){clearInterval(timer); }function scrollwindow() { currentpos=document。body。scrollTop; window。scroll(0,++currentpos); if (currentpos != document。body。scrollTop) sc();} document。onmousedown=scdocument。ondblclick=initialize=======================================把以上代碼放在需要雙擊自動滾屏的頁面的代碼中。就可以了 。