中文(繁体)
<!-- 完整的 HTML 程式碼如下: --> <html> <HEAD> <SCRIPT LANGUAGE="JavaScript"> var outMsg = "";變數我 = 0; var 行號 = 1; vartimerDM=null; var 訊息=“”;函數 araVob() { } var ScreenLine = new araVob(); ScreenLine[1] = "歡迎來到downcodes.com" ScreenLine[2] = "您可以使用的所有免費技術" ScreenLine[3] = "您還可以訪問" ScreenLine[4] = "http://www. downcodes .com" ScreenLine[5] = "請繼續提交" ScreenLine[6] = "讓我們知道您的想法" ScreenLine[7] = "非常感謝" ScreenLine[8] = " 快樂! var 訊息數量 = 1; var msgCnt = 8; var 類型速度 = 200; var pageLen = 4; var 延遲=型別速度; var r = 0; var cr="rn" if ("3" <=navigator.appVersion.charAt(0)) { var cr="n" } for (x = 1; x<=(msgCnt); x++) {螢幕線[x] = 螢幕線[x] + cr; } 訊息 = ScreenLine[1]; function DisplayMsg() { if (msg.length <= i || msg.charAt(i) == "f") { r=i; }我=0;更改訊息(); } outMsg = outMsg + msg.charAt(i);我++; if (msg.charAt(i) == "f" || (lineNo == pageLen && i==msg.length)) { 延遲 = 4000; } else { if (msg.charAt(i) == cr && msg != " "+cr) { 延遲 = 2000; } else { 延遲 = typeSpeed; self.document.forms[0].elements[0].value=outMsg; timerDM = setTimeout("DisplayMsg()",延遲); } 函式 ChangeMsg() { msgNum++; if (msgCnt < msgNum) { msgNum = 1; } 行號++; if (pageLen < lineNo || msg.charAt(r) == "f") { outMsg=ScreenLine[msgNum].charAt(i);我++;行號 = 1; } msg = ScreenLine[msgNum]; } // 結束 --> </script> </HEAD> <BODY> <FORM NAME= "msgform" ACTION=""> <input type="button" value="點這裡查看" onClick="DisplayMsg() "> </FORM> </body> </html>