Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Random Hyperlink HTML Code | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
jmr

Paratroopa
Level: 21

Posts: 40/149
EXP: 44421
For next: 5522

Since: 03-16-04
From: Newfoundland, Canada (aka the middle of FRICKIN' nowhere)

Since last post: 4 hours
Last activity: 3 days
Posted on 08-28-04 11:38 PM Link | Quote
I remember reading how to do this a while back, but I just can't remember where!

I want to make a hyperlink that will randomly go to one of 30 pages. I remember that you had to create a text file with all of the URL choices, but that's all I remember... can anyone refresh my memory?
Emptyeye
I am a real American!
Real American
Level: 67

Posts: 841/2273
EXP: 2488421
For next: 104451

Since: 05-24-04
From: I DUNNOOOOOOOO!!

Since last post: 9 hours
Last activity: 4 hours
Posted on 08-29-04 12:16 AM Link | Quote
I don't think it's something you can do with simple HTML. Maybe with JavaScript or PHP or something similar.

Conceptually, you would assign each URL a number from 1 to 30, have a link that randomly picks a number between 1 and 30, and goes to a URL based on that number.

Bringing this from concept to completion is where I'd have the trouble.
FreeDOS

Lava Lotus
Wannabe-Mod :<
Level: 59

Posts: 668/1657
EXP: 1648646
For next: 24482

Since: 03-15-04
From: Seattle

Since last post: 6 hours
Last activity: 4 hours
Posted on 08-29-04 12:36 AM Link | Quote
If you have PHP scripting support, check out the rand() function...

Otherwise, look for JavaScripts
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - Random Hyperlink HTML Code | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.005 seconds.