[thelist] JS image randomizer

Paul Dewey paul_dewey at hotmail.com
Mon Apr 2 16:13:19 CDT 2001


<SCRIPT language=JavaScript>
//Randomize the image on this pages
var img = new Array();
var prefix = "LOCATION OF IMAGES";
img[0] = prefix + "image1.jpg";
img[1] = prefix + "image2.jpg";
img[2] = prefix + "image3.jpg";
img[3] = prefix + "image4.jpg";
var index = Math.round(3*Math.random());
document.write('<IMG NAME=health SRC='+img[index]+' border=0 width=200 
height=200 alt="Rotating Image">');
// -->


</SCRIPT>


Increase the var index for more image and add the tage.  Really simple.  Ask 
me if you need more help with this.

-Paul

----Original Message Follows----
From: "aardvark" <roselli at earthlink.net>
Reply-To: thelist at lists.evolt.org
To: thelist at lists.evolt.org
Subject: [thelist] JS image randomizer
Date: Mon, 2 Apr 2001 15:19:58 -0400


need a JavaScript image randomizer... the ones i've found tend to
be kinda crappy... obviously working across all browsers/platforms
is key...  SSI not an option here... needs to allow for images of
different sizes, if possible...

suggestions?  samples?

---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com





More information about the thelist mailing list