Random Content Rotation Made Easy, by Nigel Peck, over at SitePoint is a good article, although with a flawed implemented I think.
The central idea is based around generating a style sheet via script that will hide all but one random div.
I think that rather than having all my content on the page, and having the CSS changed via a script, I'd have one constant DIV that had content placed in it (via an include or something) and have the script affect that include. But that's just me. I just think that would be more elegant.
There are a number of similar ways that it could be done, but the point of doing it this way is that it will be supported on most hosting companies (which is why it was done that way in the first place), and that Search Engines get all the content every time.
Thanks for the link, glad you liked the article :)
Comments
Nigel Peck
There are a number of similar ways that it could be done, but the point of doing it this way is that it will be supported on most hosting companies (which is why it was done that way in the first place), and that Search Engines get all the content every time.
Thanks for the link, glad you liked the article :)
Cheers,
Nigel Peck
Posted by: Nigel Peck | April 2, 2004 03:16 PM