Random Picture Display

Script by Joe Burns

     This is as random as you can get without fancy mathematical equations. When someone logs into your page, the computer reads the seconds. It takes the seconds count and adds ".jpg" and displays it.

     For example, if the seconds read 13, then "13.jpg" will be displayed. If the seconds read 56, then "56.jpg" will be displayed. Get it?

     It stands to reason, then, that to get this to work, you would require 60 images. You do. If you only want three or so to rotate, just save the same images under different names. Save 20 versions of the same picture named "1.jpg" through "20.jpg," etc., etc. Simple enough. If you wish to use .gif images instead of JPEG, you will need to go into the script and everywhere it reads ".jpg" you'll need to change to ".gif"

     I do not have the script on this page as I don't have enough images. Just make sure when you use this script that the images are in the same directory as the page that is calling for them.

     Grab the Script

     Please note: This script is being offered in simple text format. When you click to Grab the Script, the text should display. Internet Explorer and AOL users may get a blank page or the script may run and produce the effect. If this happens, choose SAVE AS from the FILE menu and save the blank or compiled page.

Back to the Image Scripts