This is my homework. I hope you can help me on this one.
How Can I Change The Color Theme Of My Html Page Using Javascript & Css?im Using A Combo Box As A Selector.?
- No trackbacks yet.
This is my homework. I hope you can help me on this one.
Change, Color, Combo, Cssim, Html, Javascript, Page, Theme, Using
This entry was posted on Monday, February 8th, 2010 and is filed under Javascript Questions. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^
Powered by Yahoo! Answers
#1 by E.M.Bed at February 8th, 2010
First you create a CSS class for every theme you need.
Then you use javascript to change the class of the elements you want to change the colour of depending on the selection of the combo box like this simple example:
What this does is change the foreground and background colours of the whole HTML page depending on what the user selects from the drop down box.
So, each CSS class has a different colour theme.
The drop down box has the class name of each theme as the value of an option
#2 by sheik_se at February 8th, 2010
http://www.barsoomfishrap.com/nwcolor.ht…