※ 跑馬燈 1 ※
|
<SCRIPT LANGUAGE="JavaScript"> <!-- function scroll(seed) { var m1 = "歡迎光臨動力資訊網" var m2 = "跑馬燈 1 展示區,瀏覽本站最佳瀏覽器為IE5.0,螢幕解析度請調至800*600。" var msg=m1+m2; var out = " "; var c = 1; if (seed > 100) { seed--; var cmd="scroll(" + seed + ")"; timerTwo=window.setTimeout(cmd,100); } else if (seed <= 100 && seed > 0) { for (c=0 ; c < seed ; c++) { out+=" "; } out+=msg; seed--; var cmd="scroll(" + seed + ")"; window.status=out; timerTwo=window.setTimeout(cmd,100); } else if (seed <= 0) { if (-seed < msg.length) { out+=msg.substring(-seed,msg.length); seed--; var cmd="scroll(" + seed + ")"; window.status=out; timerTwo=window.setTimeout(cmd,100); } else { window.status=" "; timerTwo=window.setTimeout("scroll(100)",7); } } } timerONE=window.setTimeout('scroll(100)',50); //--> </SCRIPT> |