
June 19th, 2001, 05:48 AM
|
|
Code Junky
|
|
Join Date: Jan 2001
Location: Central Missouri
Posts: 358
Time spent in forums: 8 h 11 m 4 sec
Reputation Power: 0
|
|
Though the other answers to this are also correct, another approach to this is through the use of JS.. most of the modern browsers can change css style sheets without reloading the document.
You can see examples of this at:
http://www.projectseven.com/
They use such things as form buttons, to change the style of a page.
Naturally the PHP approach can do this as well, only PHP will have to reload the page. Granted, you could couple the use of a cookie, so your visitor could actually return to your site, using the same style they selected previously.
Pro's and Con's.. the first method I mention, does require JS being enabled.. not really a concern much these days..
I dunno.. I like the PHP idea far better 
|