The W
Views: 139217818
Main | FAQ | Search: Y! / G | Color chart | Log in for more!
14.12.11 2203
The 7 - Random - HTML Help Please Register and log in to post!
(1939 newer) Next thread | Previous thread
User
Post (6 total)
MonteCarl
Potato korv
Level: 56

Posts: 252/666
EXP: 1350213
For next: 47972

Since: 21.1.02
From: Saginaw, MI

Since last post: 1324 days
Last activity: 353 days
AIM:  
#1 Posted on 6.12.03 0945.27
Reposted on: 6.12.10 0946.28
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??

--Monte N
Promote this thread!
Guru Zim
SQL Dejection
Administrator
Level: 146

Posts: 1936/6165
EXP: 38158655
For next: 354731

Since: 9.12.01
From: Bay City, OR

Since last post: 3 days
Last activity: 3 days
AIM:  
ICQ:  
Y!:
#2 Posted on 6.12.03 1430.07
Reposted on: 6.12.10 1430.22
Try here

http://simplythebest.net/cgiscripts/ads.html

CRZ
Big Brother
Administrator
Level: 228

Posts: 3359/17339
EXP: 179981729
For next: 1747528

Since: 9.12.01
From: ミネアポリス

Since last post: 1 day
Last activity: 1 hour
AIM:  
ICQ:  
Y!:
#3 Posted on 6.12.03 1545.14
Reposted on: 6.12.10 1545.14
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 (image removed) but would probably give something else to someone else at some other time. :)
bradbice
Chorizo
Level: 29

Posts: 39/142
EXP: 133130
For next: 14756

Since: 2.1.02
From: MI

Since last post: 2121 days
Last activity: 980 days
#4 Posted on 6.12.03 2117.50
Reposted on: 6.12.10 2119.58
There'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.
Zeruel
Thirty Millionth Hit
Moderator
Level: 137

Posts: 1861/5283
EXP: 30211838
For next: 661095

Since: 2.1.02
From: The Silver Spring in the Land of Mary.

Since last post: 576 days
Last activity: 518 days
#5 Posted on 6.12.03 2154.49
Reposted on: 6.12.10 2155.50
    Originally posted by bradbice
    There'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.
MonteCarl
Potato korv
Level: 56

Posts: 253/666
EXP: 1350213
For next: 47972

Since: 21.1.02
From: Saginaw, MI

Since last post: 1324 days
Last activity: 353 days
AIM:  
#6 Posted on 7.12.03 1003.36
Reposted on: 7.12.10 1003.46
    Originally posted by CRZ
    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 (image removed) 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!

--Monte N
ALL ORIGINAL POSTS IN THIS THREAD ARE NOW AVAILABLE
Thread ahead: Fun with Google
Next thread: The Last Samurai
Previous thread: Have you been naughty or nice?
(1939 newer) Next thread | Previous thread
Related threads: HTML Help please? - "Linkified" - HTML Code Questions - More...
The 7 - Random - HTML Help PleaseRegister and log in to post!

The W™ message board - 7 year recycle

ZimBoard
©2001-2018 Brothers Zim
This old hunk of junk rendered your page in 0.094 seconds.