Random Popup

Ok, Im trying to make a popup that randomly picks 1 out of 5 images to be displayed when you open a website. I know how to do the Popup, but how would I randomly choose the image and make it display on open?

Am I in the wrong forum? if so… very sorry!
Thanks a lot!

What you need to do is find some javascript that shows random images, and just have them in that html.

try this one on for size:

http://javascript.internet.com/miscellaneous/random-image.html

Or, if you don’t want the user to know that is a random image by looking at the source or want to make it more cross browser accessible, you could also do it in PHP.

Thanks for the help. It helped alot.