|Web page -user custom style||#1|
How can I give the user the ability to change the style of a webpage, of course I have to make several CSS files , but how can I make the code that permits the change upon the user's choice
posted date: 2008-12-29 23:02:00
|Re: Web page -user custom style||#3|
We're all pretty unlikely to give an answer as thorough as A List Apart's.They even provided some freely-usable code for you.
posted date: 2008-12-29 23:18:00
|Re: Web page -user custom style||#4|
(Jquery might have an easier way of doing this)At the end of the page you could have a submit button which would POST all the css settings to a php script, which would write these settings to the database. Then you would do a query like:
SELECT css_id,css_class,css_code FROM css_styles WHERE user_id='$user_id';
This would return all the css code, and then you would put this in the <head> command instead of an external css file.
posted date: 2008-12-30 00:14:00
|select page: « 1 »|