<textarea id="runcode100"><title> Verbatim message text </title> <body onload= "newsFeed ()" > <script language= "JavaScript" > function Makearray () {this.length = MakeArray.arguments.length for (var i = 0; i < this.length; i++) this[i+1] = ma Kearray.arguments[i]} var farray = new Makearray; Farray[0]= "October 1, 1949,"; Farray[1]= "The People's Republic of China Grand establishment!" "Farray[2]=" from this ... "Farray[3]=" The Chinese people stood up and moved! "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&G T </form> </body></textarea>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]