※ 按鈕式跑馬燈 ※
|
<script language="Javascript"> <!-- var speed = 200 var message = "歡迎光臨動力資訊網,本站提供您完整的網頁教學...! " var s = 0 var l = message.length document.write("<form name='btn'><input type='button' " +"name='sc' value='"+ message +"'></form>") function btnsc() { document.btn.sc.value = message.substring(s,l) + message.substring(0,s) s++ if (s >= l) { s = 0 } setTimeout("btnsc()",speed) } btnsc(); //--> </script> |