PHP Styleswitcher: Version 2

What's New

View the tutorial
Read the new version 2 tutorial.

New Version 2.03

The new Styleswitcher was developed from an idea that came into my head upon using my own styleswitcher on a few sites. The main purpose was to allow multiple stylesheets to be switched independently of one another.

For example, you can allow users to change the layout (or color) of a page without changing the font size and vice versa. You can accomplish this in the old version by creating stylesheets for each option on your page (blue with small text, green with small text, blue with large text, etc.) but I thought this defeated the purpose of multiple stylesheets.

Technically speaking the new version is written using "Object Oriented Programming" (OOP). Basically, the code has been rewritten to allow users to call one body code, not bits and pieces of code. I also hope that this model is actually easier to understand than the previous version (and easier to implement).

View an Example

Take a look at one the new stylesheet can do on the new example page.

Download

Visit the download page to get the code.

Documentation

Also, there is documentation for how to use this new code, how it works, and how to upgrade from the old version.

Styleswitcher Tutorial
Get information on how to use the new styleswitcher.
Code Documentation
Learn about the inner workers of the code and just what methods (functions) exist.
Old Tutorial
Visit the older, slightly more simple styleswitcher.

Reporting Bugs

Please use my contact form to let me know if you find any bugs or problems.


Copyright © 2003 - 2008 Rob Ballou. All Rights Reserved.
Last updated: September 09, 2007 12:27

This page's CSS and XHTML validate. Does yours?