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!
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.
January 27th, 2007 at 8:42 am
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.
January 29th, 2007 at 7:46 am
html don’t support random, as far as I know, you either have to use php or include a javascript.
January 29th, 2007 at 2:49 pm
It is possible in Javascript, but it means that each link needs to be on the page in javascript code.
February 1st, 2007 at 9:29 am
you can make a div which displays random content each time it loads website: