Let user change stylesheet
Posted: Fri Feb 16, 2007 4:50 pm
Hello dear content managers 
I have recently turned my site into CMSMS with success. The only thing I haven't suceeded in is letting the users change stylesheet via a piece of JavaScript. You can see what I'm talking about here: http://www.klagidag.dk/javascripts.php
Here the user have the options of using Metalic, Lazy Green and Pink Monster.
What I'm having problems with is not using the JavaScript. No, actually the JavaScript is working just fine, but if you look at the JavaScript you will see that it's necessary to specify where the stylesheets are located.
var ScreenCSS_1 = 'stylesheet.css';
var ScreenCSS_2 = 'stylesheetgreen.css';
var ScreenCSS_3 = 'stylesheetpink.css';
So that gives me some kind of a small problem right?
The stylesheets are stored in the database, so how the
can I possibly tell my JavaScript where to look for the stylesheets?
Thanks in advance!

I have recently turned my site into CMSMS with success. The only thing I haven't suceeded in is letting the users change stylesheet via a piece of JavaScript. You can see what I'm talking about here: http://www.klagidag.dk/javascripts.php
Here the user have the options of using Metalic, Lazy Green and Pink Monster.
What I'm having problems with is not using the JavaScript. No, actually the JavaScript is working just fine, but if you look at the JavaScript you will see that it's necessary to specify where the stylesheets are located.
var ScreenCSS_1 = 'stylesheet.css';
var ScreenCSS_2 = 'stylesheetgreen.css';
var ScreenCSS_3 = 'stylesheetpink.css';
So that gives me some kind of a small problem right?

The stylesheets are stored in the database, so how the



Thanks in advance!