POSUN TEXTU (3)

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

 

090
p090.html / p090.zip
Efektny posun textu v stavovom riadku.
1498b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<html> <head> <title> JavaScript DESTINATION - P090 </title> <script language="JavaScript"> <!-- function random(n) { if (js_iseed == 0) { now = new Date() js_iseed = now.getHours() + now.getMinutes() * 60 + now.getSeconds() * 3600 } js_iseed1 = js_iseed / js_m2 js_iseed2 = js_iseed % js_m2 var tmp = (((js_iseed2 * js_mult1 + js_iseed1 * js_mult2) % js_m2) * js_m2 + (js_iseed2 * js_mult2)) % js_m1 js_iseed = (tmp + 1) % js_m1 return (Math.floor((js_iseed/js_m1) * n)) } var str="" var direction="left" var js_mult1=3141 var js_mult2=5821 var js_m1=100000000 var js_m2=10000 var js_iseed=0 var js_iseed1=0 var js_iseed2=0 msgArray = new Array(5) msgArray[0] = "Prva nahodna sprava" msgArray[1] = "Druha nahodna sprava" msgArray[2] = "Tretia nahodna sprava" msgArray[3] = "Stvrta nahodna sprava" msgArray[4] = "Piata nahodna sprava" msg = "" dmsg = "" function doMessage() { if (msg == dmsg) { msg = msgArray[random(5)] dmsg = "" for (var ii = 0; ii < msg.length; ii++) { dmsg += " " } setTimeout('doMessage()',2500) return true } var ii = random(msg.length) var astr = dmsg.substring(0, ii) var bstr = msg.substring(ii, ii+1) var cstr = dmsg.substring(ii+1, dmsg.length) dmsg = astr+bstr+cstr window.status = dmsg JSCTimeOutID = window.setTimeout('doMessage()',50) return true } // --> </script> </head> <body onLoad="setTimeout('doMessage()',500);"> </body> </html>
[ Navrat / BACK ]