What is the HTML code for linking to random pages of the following?
I would like to have a link that links to any page of the following list randomly! Is that possible, if so what is the HTML code! If I have to use Javascript explain how I might have to use this in my html document!
Public Comments
- I'm not aware of anything in HTML or CSS that will make a link random. You could do this using PHP, I'm sure...but even then I'm not sure what the most effecient way would be (I would use an SQL database with the links, and parse it randomly that way...but I think there is probably an easier way, especially if your list isn't going to change), and you would have to make sure your server will support it.
- html don't support random, as far as I know, you either have to use php or include a javascript.
- It is possible in Javascript, but it means that each link needs to be on the page in javascript code.
- you can make a div which displays random content each time it loads website: http://www.dynamicdrive.com/dynamicindex17/randomiframe.htm
Powered by Yahoo! Answers