<div class="codetitle"> <span><a style="CURSOR: pointer" data="20278" class="copybut" id="copybut20278" onclick="doCopy('code20278')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code20278"> <br><script language="JavaScript"> <br>< !-- <BR>function MArray() { <BR>this.length = MArray.arguments.length <BR>for (var i = 0; i < this.length; i ) <BR>this[i 1] = MArray.arguments[i]} <BR>var fArray = new MArray; <BR>fArray[0]="Welcome to learn the language of javascript!"; <BR>fArray[1]="Welcome to learn the language of html Language! " <BR>fArray[2]="Welcome to learn the language of asp! " <BR>fArray[3]="Welcome to learn the language of vbscript! " <BR>var x = 1; <BR>var y = 0; <BR>var msg1 = fArray[y]; <BR>function newsSee() { <BR>if (x==msg1.length 1) { <BR>y =1; <BR>if (y > 3) y=0; <br>document.form1.news2.value=' '; <br>msg1 = fArray[y]; <br>x=0;} <br>document.form1.news2 .value=msg1.substring(0,x); <br>x =1; <br>setTimeout("newsSee() ",100); <br>} <br>// --> <br>< ;/script> <br><body onLoad="newsSee()"> <br><form name="form1"> <br><p align=center><input type="text" name="news2" size=40></p> <br></form> <br></body> <br> </div>