中文(繁体)
<!--要完成此效果把以下程式碼加入<body>區域--> <script language="JavaScript"> <!-- var current = 0 var x = 0 var speed = 200 var speed2 = 5000 function initArray(n) { this.length = n; for (var i =1; i <= n; i++) { this[i] = ' ' } } action = new initArray(4) action[0]="歡迎光臨www.downcodes.com!" action[1]="這裡是建站學院!" action[2]="你所關注的就是我們所關注的!" action[3]="再次感謝你的光臨!" function action2() { var m = action[current] window.status = m.charAt(x++) if (x == m.length + 1) { x = 0 current++ window.status = m if (current > action.length - 1) { current = 0 } setTimeout("action2()", speed2) } else { setTimeout("action2()", speed) } } action2() //--> </script>