Click to See Complete Forum and Search --> : How 2 change CSS online??


J3man
11-16-2003, 11:43 AM
Can anybody help with this problom im having...

i have designed a site for a uni project and i want to make it possible for the admin to change the look of the site online, eg the back ground colour and text colour and style. Is there a way in which i can do this so that it saves it to thee CSS and changes the look of all the site??!

if anybody has any example code it would be much appreicated..


cheers.
Josh.

pyro
11-16-2003, 01:37 PM
Yes, this can be done with a server-side language. What does your server support?

J3man
11-16-2003, 02:33 PM
Originally posted by pyro
What does your server support?

erm i dont no on that 1. it will probly actully not published on the internet but just offline. Is it not posible to do this through javascript then? i have material that changes the colour of the bg and text of that page, but ideally i want it to update the css file so thaty it changes other pages aswell :confused:

pyro
11-16-2003, 04:05 PM
JavaScript does not have file I/O capabilities, so you will not be able to it with that.

spufi
11-17-2003, 12:12 PM
Originally posted by pyro
JavaScript does not have file I/O capabilities, so you will not be able to it with that.

Client side JavaScript doesn't have file I/O capabilities, but I believe server-side does. Even then, can't the admin just go into his FTP tool and edit the CSS file(s) that way?