Copy Code code as follows:
<script language= "JavaScript" >
<!--
function Marray () {
This.length = MArray.arguments.length
for (var i = 0; i < this.length; i++)
THIS[I+1] = marray.arguments[i]}
var farray = new Marray;
Farray[0]= "You are welcome to learn the language of JavaScript!" ";
Farray[1]= "Welcome you to learn the language of HTML!" "
Farray[2]= "Welcome you to learn ASP this language!" "
Farray[3]= "You are welcome to learn the language of VBScript!" "
var x = 1;
var y = 0;
var msg1 = farray[y];
function Newssee () {
if (x==msg1.length+1) {
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 ("Newssee ()", 100);
}
-->
</script>
<body onload= "Newssee ()" >
<form name= "Form1" >
<p align=center><input type= "text" name= "News2" size=40></p>
</form>
</body>