korkus2000

msg:960296 | 8:19 pm on Dec 11, 2002 (gmt 0) |
Welcome to WebmasterWorld hogman, You want to have a rollover button that when you rollover it, it will chose a random image to swap, then switch back to the original?
|
hogman

msg:960297 | 8:27 pm on Dec 11, 2002 (gmt 0) |
Yes that is exactly what I am looking for.
|
BjarneDM

msg:960298 | 10:32 pm on Dec 23, 2002 (gmt 0) |
<html> <head> <script type="text/javascript" language="Javascript"> var images = new Array () images[images.length] = '<URL for img1>' images[images.length] = '<URL for img2>' ... images[images.length] = '<URL for imgN>' function randomised(toChange) { toChange.src = images[Math.floor(Math.random()*images.length)] } </script> </head> <body> <img src="<img-file>" alt="" onmouseover="randomised(this)" onmouseout="this.src='<img-file>'"> </body> </html> Simple :-)
|
|