קוד HTML:<script language="JavaScript"> <!--- var CurrentMsg = 'hello '; function update(msg) { var pad_str=""; n = msg.length; if(n<72) { pad = (73-n)/2; for(var i=0; i<pad; i++) { pad_str+=" "; } } CurrentMsg = pad_str + msg; document.messages.field.value = CurrentMsg;clearTimeout(timer); timer = setTimeout("idleMsg()",1500); } function MakeArray(n) { this.length=n; for(var i = 1; i<= n; i++) { this[i] = ""; } return(this); } var index = 1; var notice_num = 9; var notices = new MakeArray(notice_num); notices[1] = " here we start " notices[2] = "www.yo-yo.up.co.il" notices[3] = "wwwwhhhhatttt" notices[4] = " this is a nice script" notices[5] = " bla bla bla " notices[6] = " www.topsites.***********" notices[7] = " 121212" notices[8] = " www.yo-yo.up.co.il " var timer = setTimeout('idleMsg()',1500); function nochange() { document.messages.field.value = CurrentMsg; } function idleMsg() { update(notices[index++]); if(index>notice_num) { index=1; } } //--> </script> <form name="messages" onSubmit="return false"> <input type="text" name="field" size=50 onFocus="self.status='This is a JavaScript information data field'; return true" onChange="nochange()">



