|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Jun 2002
Location: Back in the USSA
Posts: 8,849
|
Quick script question
What script would I need to use to make a random image load on an HTML page? The idea is to have, say, four options, and a random one of them is picked each time the page loads.
__________________
![]() Photos by Ian X.: Distinctive photos of goth babes. Blood Money:Your traffic, my sites, our money. MojoHost: Still the best. |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Apr 2003
Location: On the edge
Posts: 1,796
|
Use java script if you dont have cgi enabled.
If your server supports cgi just use src=random.cgi ICQ me if you need help to set it up
__________________
ICQ :333-548-380 |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Nov 2001
Location: Poland
Posts: 219
|
java script its just what you need
ha ha ha |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Jun 2002
Location: Back in the USSA
Posts: 8,849
|
I can use cgi or hahahahahahahahahaha.
__________________
![]() Photos by Ian X.: Distinctive photos of goth babes. Blood Money:Your traffic, my sites, our money. MojoHost: Still the best. |
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Nov 2001
Location: Poland
Posts: 219
|
so cgi or php (because some can have java script disabled)
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Jun 2002
Location: Back in the USSA
Posts: 8,849
|
I want to add something to an existing html page, so links don't have to change. I would be happy with a default image showing up for people who don't has j-s on.
__________________
![]() Photos by Ian X.: Distinctive photos of goth babes. Blood Money:Your traffic, my sites, our money. MojoHost: Still the best. |
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Nov 2001
Location: Poland
Posts: 219
|
send me an email
anothers at interia.pl tell exactly what should be done if it can be in php |
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Apr 2003
Location: On the edge
Posts: 1,796
|
why would you use php for such an easy thing?
do you think it's worth to build up a sql database for a simple random image??? or am I losing myself? I have a random cgi script that works perfectly both for random images or pages.
__________________
ICQ :333-548-380 |
|
|
|
|
|
#9 | |
|
Confirmed User
Join Date: Nov 2001
Location: Poland
Posts: 219
|
Quote:
|
|
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: Jun 2002
Location: Back in the USSA
Posts: 8,849
|
Thanks to Anothers for a bunch of help with the script. It is up and working great now, so I can offer my affiliates random banners. I plan to add some other uses in the near future. Cool stuff.
__________________
![]() Photos by Ian X.: Distinctive photos of goth babes. Blood Money:Your traffic, my sites, our money. MojoHost: Still the best. |
|
|
|
|
|
#11 | |
|
Confirmed User
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
|
Quote:
__________________
NSCash now powering ReelProfits.com ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash NOW OFFERING OVER 60 SITES CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133) |
|
|
|
|
|
|
#12 | |
|
Confirmed User
Join Date: Nov 2001
Location: Poland
Posts: 219
|
Quote:
Contact me (but next week please - im out of town this week) if you want some help with other features. hmm 5 posts in 1 thread - i must get this SWOIT sig |
|
|
|
|