※ 跑馬燈 3 ※
|
<SCRIPT Language="JavaScript"> var msg="跑馬燈 3 展示區,這是用JAVA Script 所做出來的跑馬燈! "; var interval = 100; var space10=""; var seq=0; function Scroll() { document.tmForm.tmText.value = msg.substring(seq, msg.length) + space10 + msg.substring(0, msg.length); seq++;seq++; if ( seq > msg.length ) { seq = 0 }; window.setTimeout("Scroll();", interval ); } </SCRIPT> <BODY OnLoad="Scroll();" > <CENTER><FORM Name=tmForm> <INPUT Type=Text Name=tmText Size=45> </FORM></CENTER> </BODY> |