Here, another way if you'd like to use javascript on your page.
QUOTE
The steps involved in randomly displaying an image from a set are very similar to those used for displaying random text strings.
1. Initializing an array
2. Storing the image file names in that array
3. Finding the length of this array
4. Using the Math.random() to generate a random number
5. Using the randomly generated number as index for retrieving an image file name from the array.
6. Displaying the image.
var img_name = new Array("purple.gif", "red.gif",
"blue.gif", "yellow.gif", "green.gif", "pink.gif");
var l = img_name.length;
var rnd_no = Math.round((l-1)*Math.random());
document.r_img.src = img_name[rnd_no];
<IMG SRC="blank.gif" WIDTH="100" HEIGHT="50"
NAME="r_img" ALT="Random image">
They are just a simple one, you could find a lot more on the net through Google.
This matter could also be done in Flash which is flashier but not really easy to do. Tutorial of how to do it can be found through search engines too. Check out
www.flashkit.com if you are serious to Flash.
Comment/Reply (w/o sign-up)