REKLAMNE NAPISY

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

052
p052.html / p052.zip
Reklamne napisy vo formularovom riadku
1355b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<HTML> <HEAD> <TITLE> JavaScript DESTINATION - P052 </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] = "Casopis Pavucina Vas ocakava (http://www.pavucina.sk)"; notices[2] = "JavaScript DESTINATION je cool !"; notices[3] = "Ste smutny ? (http://www.humor.sk)"; notices[4] = "Neviete kam skor ? (http://www.superzoznam.sk)"; var timer = setTimeout('idleMsg()',5000); function idleMsg() { update(notices[index++]); if(index>notice_num) { index=1; } } // --> </script> </head> <BODY> <form name="messages" onSubmit="return false"> <input type="text" name="field" size=80 height=5 value="Vypisovanie reklamnych napisov."> </form> </BODY> </HTML>
[ Navrat / BACK ]