February 1, 201016 yr I would like to design a few different looks for my site and have them switchable by the user. The html will stay the same, the layout and content will be the same. All I will be doing is changing background images. What I would like to find is some script (php / java) that simply switches from say arty_style.css to web2-0_style.css when the user chooses that option. Also for this change to be kept when they go to a new url within my site and when they next come to the site would I need a login/signup system of some kind or can this kind of thing be stored in a cookie? Thanks
February 1, 201016 yr To keep track of the user, you would need either a cookie or a login system. The website CSS Zen Garden does exactly what you're thinking of in terms of style-switching. If you read their FAQ link you'll find a JavaScript style switcher, the CSS Zen Garden PHP style switching script and the reasons why David Shea (author) used PHP. Hope if helps
Create an account or sign in to comment