Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Macnoviz

macrumors 65816
Original poster
Jan 10, 2006
1,059
0
Roeselare, Belgium
Hi, I recently switched from iWeb to dreamweaver, and I have completed my first site in XHTML and CSS, but is it possible to let users choose a certain stylesheet for your website?
In this case I have several .css files that have different colour schemes. I've seen this feature in phpBB, where a user can choose a style to view the forum from a drop-down list, but is it hard to incorporate in a website?
I appreciate any help.
 

rogersmj

macrumors 68020
Sep 10, 2006
2,161
1
Indianapolis, IN
You might want to search Google for something like "change CSS stylesheet with javascript". Here's one that has a lot of good information and even includes code at the end that you can download and fit into your site.
 

hopejr

macrumors 6502
Nov 10, 2005
310
0
New South Wales, Australia
The A List Apart example is good. I used that on my old website which was entirely client side (i.e. no PHP or whatever in the backend). You can switch theme without reloading. It also comes up in the Page Style menu in Firefox.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.