Server side vs client side style switching
Server side
Negatives
- Using a programming language (ColdFusion, PHP, ASP, .net etc.)
- Need a server environment capable of doing it
- Need a programmer to set it up
- Need to reload the page
Positives
- Safer and more reliable as there's no client programming
- Can use server session or client variables for more control over each style
- Variety of options
- changing the ID of the BODY element
- changing the link to the style sheet (multiple style sheets)
- dynamically generated stylesheet (e.g. a ColdFusion or PHP file with a mime-type of text/css)