![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am designing and building a website for a customer and he needs to choose a colour scheme for the site. He says he'd like to see the site with 8 or 10 different colour schemes so he can choose what he likes best; he feels sure that he will be able to select at least one that he likes if I show him 10 alternatives. It seems to me that the best way to do that is to give him a drop down box containing the names of the colour schemes (e.g. "Dark Green Background", "Light Blue Background") and then, based on which one he selects from the drop down, redraw the page using a CSS that has that colour scheme. Naturally, I'd need 10 CSSs but they would be quite simple and 9 would be thrown away after he has chosen his colour scheme. Can anyone suggest a good way to actually code my pages so that he can see the CSS change dynamically, based on his selection in the dropdown box? Javascript strikes me as the most obvious option; I'm not quite sure how to do this though since my Javascript is rather rusty so I've posted to a Javascript newsgroup. Are there any better ways to do the same thing? I've never much liked Javascript and would be delighted to find another way if one exists and is reasonably straightforward to use..... |
#3
| |||
| |||
|
|
I am designing and building a website for a customer and he needs to choose a colour scheme for the site. He says he'd like to see the site with 8 or 10 different colour schemes so he can choose what he likes best; he feels sure that he will be able to select at least one that he likes if I show him 10 alternatives. It seems to me that the best way to do that is to give him a drop down box containing the names of the colour schemes (e.g. "Dark Green Background", "Light Blue Background") and then, based on which one he selects from the drop down, redraw the page using a CSS that has that colour scheme. Naturally, I'd need 10 CSSs but they would be quite simple and 9 would be thrown away after he has chosen his colour scheme. Can anyone suggest a good way to actually code my pages so that he can see the CSS change dynamically, based on his selection in the dropdown box? Javascript strikes me as the most obvious option; I'm not quite sure how to do this though since my Javascript is rather rusty so I've posted to a Javascript newsgroup. Are there any better ways to do the same thing? I've never much liked Javascript and would be delighted to find another way if one exists and is reasonably straightforward to use..... |
#4
| |||
| |||
|
|
I am designing and building a website for a customer and he needs to choose a colour scheme for the site. He says he'd like to see the site with 8 or 10 different colour schemes so he can choose what he likes best; he feels sure that he will be able to select at least one that he likes if I show him 10 alternatives. It seems to me that the best way to do that is to give him a drop down box containing the names of the colour schemes (e.g. "Dark Green Background", "Light Blue Background") and then, based on which one he selects from the drop down, redraw the page using a CSS that has that colour scheme. Naturally, I'd need 10 CSSs but they would be quite simple and 9 would be thrown away after he has chosen his colour scheme. Can anyone suggest a good way to actually code my pages so that he can see the CSS change dynamically, based on his selection in the dropdown box? Javascript strikes me as the most obvious option; I'm not quite sure how to do this though since my Javascript is rather rusty so I've posted to a Javascript newsgroup. |
|
Are there any better ways to do the same thing? I've never much liked Javascript and would be delighted to find another way if one exists and is reasonably straightforward to use..... |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Can anyone suggest a good way to actually code my pages so that he can see the CSS change dynamically, based on his selection in the dropdown box? |
#7
| |||
| |||
|
|
I am designing and building a website for a customer and he needs to choose a colour scheme for the site. He says he'd like to see the site with 8 or 10 different colour schemes so he can choose what he likes best; he feels sure that he will be able to select at least one that he likes if I show him 10 alternatives. |
![]() |
| Thread Tools | |
| Display Modes | |
| |