<html> <head> <title>Rotating Text Banner</title> <script language="JavaScript"> function update(msg) { var pad_str=""; n = msg.length; if(n<81) { pad = (81-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()",5000); } function MakeArray(n) { this.length=n; for(var i = 1; i<= n; i++) { this[i] = ""; } return(this); } var index = 1; var notice_num = 4; var notices = new MakeArray(notice_num); notices[1] = "Welcome to Total JavaScripts 99!"; notices[2] = "There are hundreds of scripts..."; notices[3] = "With examples and help."; notices[4] = "Tell all of your friends about this CD-Rom!"; var timer = setTimeout('idleMsg()',0); function idleMsg() { update(notices[index++]); if(index>notice_num) { index=1; } } </script> </head> <body> <form name="messages" onSubmit="return false"> <div align="center"><center><p><input type="text" name="field" size="45" height="5" value style="font-weight: bold; font-family: sans-serif; background-color: rgb(255,255,255); color: rgb(255,0,0); border: medium none rgb(255,255,255)"> </p> </center></div> </form> </body> </html>
1998 Copyright (C) Next Step All Rights Reserved