[thelist] Javascript: randomizing persistent text rotator

rudy r937 at interlog.com
Sun Mar 24 20:47:01 CST 2002


> Can someone help me to randomize the display of the Array below?
> I know it's something like:
>
>     var randy = Math.floor(Math.random()*txtStr.length),

hi file://t

(i know that's not your sig, but that's what is shows in outlook
express)

that random code is correct

i use the same code on http://rudy.ca/quatschdichaus.cfm


> but I can't get it to work smoothly.

?

got a working page?  url?

i'm not a js guru so i cannot offer any insights into your js code (nor
the browser-specific html it's generating), but don't you have to declare
temp as a var? so that it can be known inside the rotateR function?

rudy





More information about the thelist mailing list