POSUN TEXTU

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

 

053
p053.html / p053.zip
Posun textu v stavovom riadku prezeraca
1142b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<html> <head> <title> JavaScript DESTINATION - P053 </title> <script> <!-- function statusScroll(stuff) { var m1 = " Paci sa Vam takyto skrolujuci text ?"; var m2 = " Verte, ze JavaScript dokaze este viac !"; var m3 = " To by bolo asi vsetko."; var msg = m1+m2+m3; var out=" "; var c=1; if (stuff > 100) { stuff --; var cmd="statusScroll("+stuff+")"; timerTwo=window.setTimeout(cmd,100); } else if (stuff <=100 && stuff >0) { for (c=0; c<stuff; c++){ out+=" "; } out+=msg; stuff--; var cmd="statusScroll("+stuff+")"; window.status=out; timerTwo=window.setTimeout(cmd,100); } else if (stuff <=0) { if (-stuff <msg.length){ out+=msg.substring(-stuff, msg.length); stuff--; var cmd="statusScroll("+stuff+")"; window.status=out; timerTwo=window.setTimeout(cmd,100); } else { window.status=" "; timerTwo=window.setTimeout("statusScroll(100)",75); } } } // --> </script> </head> <body onLoad="TimerONE=window.setTimeout('statusScroll(100)',500);"> </body> </html>
[ Navrat / BACK ]