Programming

Alternating Stylesheets

September 25, 2005

For a while now, I’ve been considering implementing alternate style sheets. Today while browsing around on google, I discovered a nice javascript file that will really help me out in this task.

For users of Firefox, this script really isn’t necessary. You can simply go to View, Page Style then select the stylesheet that use you wish to use. However if you’re a user of MSIE, this option isn’t available. Having seen a few websites around javascript to do this task, I figured rather than spend hours trying to reinvent the wheel I’d just grab one of these.

I particularly liked this one because it made sure it worked for all browsers, and it stores a cookie so that the preference is saved. All I have to do now is tie that into the database system, and I’m set. Not to mention make some new style sheets…

Source

Only registered users can comment.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.