January 28, 2004

Random Content vis CSS

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.
Post Info

Tagged As CSS

Comments are Open (1)

Posted at 10:24 AM

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

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Search
Comments on this post
Categories
Info
Tony Stephens
Copyright © 1995-2005
Site Version:
10
Licensed:
Creative Commons
Validate:
XHTML, CSS, 508, RSS
Subscribe
Blog-Fu, Link-Fu