Background Color

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
barrowvian
Forum Commoner
Posts: 47
Joined: Tue Aug 19, 2008 3:49 pm

Background Color

Post by barrowvian »

I'm in the process of building a mini project, to familiarize myself with a few techniques etc.

One thing I'm not too sure about though is...can the background color of the website be changed completely while the site is live? For example, I have 3 radio buttons (1 blue, 1 red, 1 green) and the default background color is gray. If I select the red option and then submit I'd like to change the background colour for the whole site to red. Once I log off, delete cookies etc and return to the site I'd still like it to be red, and red for every other user that views it. It this possible to do without being too complex? Any help is appreciated, thanks.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Background Color

Post by kaszu »

Save the chosen value in the database, ini file or some other storage.
When page is generated check it and set appropriate background color.
It should be simple! Have you tried something already?
Post Reply