Random Image Instructions
Example

- Reload the page to view a different image
- Also check out the JavaScript slideshow
Description
- Displays a random image from a list stored in a text file
Download
Terms of Use
- Script is released as public domain. For full Terms of Use visit my Use Policy
Instructions
Open randimg.cgi and set the variables
- Set the Path to perl. On most systems it's #!/usr/bin/perl but varies by host
- Set the path to your log file. currently set at "randimg.txt" but can be set to anything
Open the log file (randimg.txt) and set the images
- List each image on a separate line
- You can have as many, or as few images as you would like
Upload randimg.cgi and randimg.txt
- Upload all the files in ASCII mode (the cgi files MUST be uploaded in ASCII, and for the others it's preferable)
- CHMOD randimg.cgi to 755 and the randimg.txt to 644.
Call the random image from your HTML page
- To call image <img src="cgi-bin/randimg.cgi">
- Or to call random background <body background="cgi-bin/randimg.cgi">