I'm looking to have the JPG image on the splash page of my website change per visit. Y'know, have 4-5 different images, and it rotates through them everytime the page is reloaded or is visited. Any instruction on how this could be accomplished? I'm sure it's a simple CGI script or something like that, but I'm not having luck finding anything on my own as I don't know what to even search for. Help??
But those people want MONEY for their scripts! Sacrilege!
Do you care about a strict rotation through all your images, or can it be pretty much random? I could send you the random.cgi I wrote if you want. All it does is return a random filename from a directory fed to the script as a raw-HTML "Location:"
The standard example is my Pokmon avatar: Calling http://imagen.CRZ.net/pokemon/random.cgi gives you but would probably give something else to someone else at some other time. :)
Originally posted by bradbiceThere's also a great list of very basic CGI scripts(mostly Perl-written) at http://www.scriptarchive.com/.
These are great to learn from and modify if needed.
I grabbed some PHP from a site like that to make my rotating avatar (2 pics from halloween 2001, 1 from 2002, and 1 from 2003), just like CRZs rotating pokemon pics.
If you all want to use it, just give a shout and I'll post it.
But those people want MONEY for their scripts! Sacrilege!
Do you care about a strict rotation through all your images, or can it be pretty much random? I could send you the random.cgi I wrote if you want. All it does is return a random filename from a directory fed to the script as a raw-HTML "Location:"
The standard example is my Pokmon avatar: Calling http:/ /imagen.CRZ.net/pokemon/ random.cgi gives you but would probably give something else to someone else at some other time. :)
Random would be cool. If you could send me that script, I'll try it out. Thanks!