雙擊滾動網頁
將下列程式碼複製至<head>程式碼</head>區內。
<SCRIPT language=JavaScript> 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=sc document.ondblclick=initialize </script> <!--從這裡開始不用複製--> <font color="000080">因為範例網頁可能不夠長</font><br> <font color="000080">所以</font><br> <font color="000080">用此</font><br> <font color="000080">方式</font><br> <font color="000080">增加</font><br> <font color="000080">頁面</font><br> <font color="000080">長度</font><br> <font color="000080">∼∼</font><br> <font color="000080">∼∼</font><br> <font color="000080">∼∼</font><br> <font color="000080">∼∼</font><br> <!--不用複製範圍完畢--> |