![]() |
Multiple random link generators on one page
Hi, I'm currently trying to incorporate several random link generators on one page, each with different links to be directed to. However, at the minute all the links just direct me to the URLs of the most recent random link to be created. If someone could point me in the right direction to fixing this that would be great! The code I am currently using is:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
Huh? ...
Quote:
You only have 3 possible links to go to randomly. With so few links to go to, you will have a 33% chance of going to the same link each time you click the link. That is just the nature of the random function. Are you trying to randomly go to a different link when you click on one of the 3 links available? Is that what you are trying to accomplish? Are you trying to guarantee that the 3 links will go to a random URL one time before repeating a random sequence again? |
Sorry about the confusing request, I'm a bit of a novice I'm afraid. I literally just mean I want several different random links on one page.
e.g. Link 1 --> RandomURL A RandomURL B RandomURL C Link 2 --> RandomURL D RandomURL E RandomURL F etc. At the minute using that code all that happens is that all the links direct to whichever code I input most recently. So for the above example, Link 1 would still direct to RandomURLs D, E and F. Just wondering if there was something I could do to rectify this? |
Something to try...
Try this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"Good Luck! :) |
| All times are GMT +1. The time now is 09:52 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.