Log in

View Full Version : Send parameter to css page



tuyu
12-14-2008, 11:48 AM
Hi,
i work on a website.on this website an administrator could change this site's color ,font-type etc. whenever he wants.
i want to do it with css.first question is, if admin wants to change font-type how can i send this new font-type to css?

second question: if admin wants to change color ,windows color pallette may open and admin can select color.but i dont know how can i do it :confused:

please help me

Medyman
12-14-2008, 03:01 PM
You would do this by either setting a class or id. CSS variables aren't yet supported though there are proposals to that effect.

You could use PHP if that is easier for you. Set up your browser to parse CSS as PHP. Make sure you send the correct CSS headers though.

I'm not sure what "windows color pallette" you're referring to, but you might consider using a JavaScript-based widget of this functionality. I believe there is one in the DynamicDrive library. jQuery also has a widget for this.