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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-30-2003, 04:33 PM   #1
gothweb
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.
gothweb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 04:41 PM   #2
jovigirl
Confirmed User
 
jovigirl's Avatar
 
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
jovigirl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 04:42 PM   #3
Anothers
Confirmed User
 
Join Date: Nov 2001
Location: Poland
Posts: 219
java script its just what you need

ha ha ha
Anothers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 04:44 PM   #4
gothweb
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.
gothweb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 04:45 PM   #5
Anothers
Confirmed User
 
Join Date: Nov 2001
Location: Poland
Posts: 219
so cgi or php (because some can have java script disabled)
Anothers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 04:48 PM   #6
gothweb
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.
gothweb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 04:51 PM   #7
Anothers
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
Anothers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 05:07 PM   #8
jovigirl
Confirmed User
 
jovigirl's Avatar
 
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
jovigirl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 05:47 PM   #9
Anothers
Confirmed User
 
Join Date: Nov 2001
Location: Poland
Posts: 219
Quote:
Originally posted by jovigirl
do you think it's worth to build up a sql database for a simple random image???or am I losing myself?
who said anything about database?
Anothers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 05:55 PM   #10
gothweb
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.
gothweb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 05:59 PM   #11
JDog
Confirmed User
 
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
Quote:
Originally posted by Anothers
so cgi or php (because some can have java script disabled)
php, that's what i'd recommend
__________________
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)
JDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-30-2003, 06:14 PM   #12
Anothers
Confirmed User
 
Join Date: Nov 2001
Location: Poland
Posts: 219
Quote:
Originally posted by gothweb
Thanks to Anothers ...
no problem

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
Anothers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.