<div class="htmlarea"> <textarea id="runcode66701"> <title>逐字出现的信息文字</title> <script language="JavaScript"> function makeArray() { this.length = makeArray.arguments.length for (var i = 0; i < this.length; i++) this[i+1] = makeArray.arguments[i] } var fArray = new makeArray; fArray[0]="1949年10月1日, "; fArray[1]="中华人民共和国隆重成立! " fArray[2]="从此…… " fArray[3]="中国人民站起来了,感动! " var x = 1; var y = 0; var msg1 = fArray[y]; function newsFeed() { if (x==msg1.length+1) { for (var z=0; z < 70000; z++); y+=1; if (y > 3) y=0; document.form1.news2.value=' '; msg1 = fArray[y]; x=0; } document.form1.news2.value=msg1.substring(0,x); x+=1; setTimeout("newsFeed() ",200); } </script> <form name="form1"> <textarea wrap="physical" rows="3" cols="25" name="news2"> </textarea> </form> </textarea><br><input onclick="runEx('runcode66701')" type="button" value="运行代码"> <input onclick="doCopy('runcode66701')" type="button" value="复制代码"> <input onclick="doSave(runcode66701)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>