Changing site colors on the fly

Status
Not open for further replies.

a.titus1

New member
Jun 24, 2006
567
4
0
Ive seen a few sites do this, and for the life of me couldnt figure out how to do this on the fly with an external style sheet. Then I got smart and looked at the source and noticed the style include was a .php and not .css, then it hit me. Just have a simple control structure in the php code that branches according to what color you send it and thats how you determine what style sheet to include. Seems obvious now that I looked at it, but took me awhile.

Any other tips for doing stuff like this?
 


Yep, what I was going to say. For example look at wired.com (The font size change buttons).

::emp::
 
Status
Not open for further replies.