View Full Version : a site that allows you to pick the .css file

08-13-2003, 08:46 PM
does anyone know a site (or the javascript code) where you click a link and it changes the current css, so you can have some control over what the site looks like? i dont know enough about css to do it, but i know it can be done.

08-13-2003, 08:58 PM

08-13-2003, 09:04 PM
AFAIK that requires server-side scripting.

Zach L.
08-13-2003, 09:12 PM
Doubt it'll work with JavaScript (as the 'corrrect' CSS file to send would not be known when the page is initially being rendered). You could definitely do it with Perl or PHP though.

08-14-2003, 01:48 PM
Use Opera. You can supply your own CSS styles to override the page's styles.

08-14-2003, 07:57 PM
flashdaddee allows you to choose between different ones for its forums with a pull-down menu

08-15-2003, 06:30 AM
this is from flashadee or w/e, it requires no server side scripting:

<select name="styleid" onchange="window.location=('index.php?styleid='+this.options[this.selectedIndex].value)">
<option value="1" selected>-KENdo Nagasaki- (42 users)</option><option value="2" >Gray (26 users)</option><option value="3" >Basic Bassy (10 users)</option><option value="4" >face_master special (6 users)</option><option value="5" >stealth (4 users)</option><option value="6" >Sentaku Silk (2 users)</option>

im sure there is a way where it loads multiple style sheets at the beginning of the page, but only has one active, then some javascript sets the active link. but the above method would work, although it requires a lot more pages than without choosing. not only that but it would be impratical for doing a whole site, since you're looking at having 5-6 times as many pages to make. and you really couldnt have more than a few styles.

08-15-2003, 08:00 AM

That's just passing parameters to a server-side script.

08-15-2003, 03:40 PM
yeah but you do something like this


or something to that effect, i dont know much javascript. but if you picked theme "blue" it would take you to page1blue.html, and if you picked green it would take you to page1green.html.

08-15-2003, 08:48 PM
What was the point of this thread again?