![]() |
![]() |
SSI RANDOM IMAGE v1.2
Want to add a little jazz to your web pages? Why don't you have random images/pictures loaded every time a user drops by? Sound fun? Well this script is for you!
Information
Original Author: Matt Wright
Modifications: No modifications need to be made. Logging feature should be disabled due to incompatibilities with Windows NT Perl and UNIX Perl library calls.
Example
The following is a random image call. There are two choices available though there can be an almost limitless number of random images. Reload this page to see the random script in action.
Downloadsssi_image.zip (6 KB)
Installation Instructions
To install this script, download the file listed above. Then follow these instructions:
1. Unzip the files included in the ssi_image.zip ZIP archive into whatever directory you desire.
2. Edit ssi_rand_image.pl as dictated by the README file. Please turn off logging by changing the following:
$uselog="1";
to:
$uselog="0";
Also, it is advisible to comment out the following line:
print "Content-type: text/html\n\n";
By placing a # in front of it like:
# print "Content-type: text/html\n\n";
3. Upload ssi_rand_image.pl to a directory underneath your /cgi-shl/ directory. In particular, you may want to upload it into a directory such as /cgi-shl/ssi_rand_image/.
4. Edit your HTML file that you want the random image to appear in.
5. Add the following code:
<!--#exec cgi="/cgi-shl/ssi_rand_image/ssi_rand_image.pl"-->
Add it to wherever you want the image to appear.
6. You should be done now. If you have any questions, please visit the Hosted Sites WebBoard.
| Main Support Page | The Basics | Tested Scripts | Resources & Links |
| Technical Support Message Board | |||
| Features | Rate Plans | Support | Contact |
| References | Resellers | Order | Home |