中文(简体)
<!-- 完整的 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>