<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 = 6; var notices = new MakeArray(notice_num); notices[1] = "Java Script Library"; notices[2] = "http://java.tatousek.cz"; notices[3] = "JT WebDesign Studio"; notices[4] = "http://webdesign.tatousek.cz"; notices[5] = "Ji°φ TatouÜek - Home Page"; notices[6] = "http://www.tatousek.cz"; var timer = setTimeout('idleMsg()',5000); function idleMsg() { update(notices[index++]); if(index>notice_num) { index=1; } } // --> </script> <center> <form name="messages" onSubmit="return false"> <input type="text" name="field" size=40 height=5 value=" "> </form> </center> |