Switching CSS
Here’s a very neat script from an article I read from A List Apart. It discusses how to switch between multiple alternate style sheets. It comes with a javascript code that allows a user to switch stylesheets with a just click of a button. Try it out below.
The script stores the information in a cookie allowing the colors to stick throughout the WordPress blog. The alternate stylesheets do not affect other modules in my website such as the calendar, family and gallery links. These modules are seperate and are set by default to blue.
However, I modified the links page to demonstrate how easy it is to incorporate the the alternate CSS javascript to other modules within your website. Try changing the color to red, then check the links page. It gets a bit tricky if a module is using a separate or multiple cascading CSS stylesheets.
You can use this script also to make your website more accessible by allowing users to select different size fonts. I think this is a great feature to have available on any website. Why not give this javascript a try. Just read the article. It’s fairly easy and straightforward. Let me know how it goes.

Leave a Reply