############################################################################## # Basic Random Image Displayer Version 1.2 # # Copyright 1996 Matt Wright mattw@scriptarchive.com # # Created 7/1/95 Last Modified 7/20/95 # # Matt's Script Archive, Inc. http://www.scriptarchive.com/scripts/ # ############################################################################## # If you run into any problems while trying to configure this script, help # # is available. The steps you should take to get the fastest results, are: # # 1) Read this file thoroughly # # 2) Consult the Matt's Script Archive Frequently Asked Questions: # # http://www.scriptarchive.com/scripts/help/faq/ # # 3) If you are still having difficulty installing this script, send # # e-mail to: scripts-help@tahoenet.com # # Include any error messages you are receiving and as much detail # # as you can so we can spot your problem. Also include the variable# # configuration block that is located at the top of the script. # # # # Hopefully we will be able to help you solve your problems. Thank you. # ############################################################################## # COPYRIGHT NOTICE # # Copyright 1996 Matthew M. Wright All Rights Reserved. # # # # Basic Random Image may be used and modified free of charge by anyone so # # long as this copyright notice and the comments above remain intact. By # # using this this code you agree to indemnify Matthew M. Wright from any # # liability that might arise from it's use. # # # # Selling the code for this program without prior written consent is # # expressly forbidden. In other words, please ask first before you try and # # make money off of my program. # # # # Obtain permission before redistributing this software over the Internet or # # in any other medium. In all cases copyright and header must remain intact.# ##############################################################################
/home/mattw/public_html/ pics/funny.gif nature/waterfalls.gif pics/cool.gif nature/tree.gif pics/www.gifWhere pics/ and nature/ are directories that these images are located in. Your variables should show as follows: $basedir = "http:/host.com/~mattw/"; @files = ("pics/funny.gif","nature/waterfalls.gif","pics/cool.gif", "nature/tree.gif","pics/www.gif");
For a random in-lined image: <img src="http://www.ser.ver/cgi-bin/rand_image.pl">For a random background image: <body background="http://www.ser.ver/cgi-bin/rand_image.pl">
Version 1.0 07/01/95 - First Created Version 1.1 07/17/95 - Completely Re-written. Less variables to fill in, added flexibility: including pics in different directories and pics with names unlike others. A big improvement over the last version. You can also have different extensions like .jpg and .gif. Version 1.2 07/20/95 - Eliminated the $numfiles variable and can now take the random number straight from the array.
Matt Wright - mattw@scriptarchive.com |