Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: changing colors


Message #1 by KATHLEEN.M.WHALEN@c... on Fri, 27 Apr 2001 14:59:57 -0400
What's an "external stylesheet"?  Is that like a "global.css" file? 
I don't understnd how that would help me dynamically change my colors?

===========================================================
for starters, i suggest that you use external stylesheets.

if you do not know what i mean, or you have not solve the
problem in the mean time, contact me at
thys_haupt2@y...

regards




> I have a CSS style manually created within my page.  I want to give my > 
client several variations to look at for the color schema on the page.  I 
> do not want to create a dozen different pages.  I would like to create
one
> page contains buttons (red, green, blue, purple, gray, etc.).  When each 
> button is clicked it would dynamically change the style that is set
within
> my page.  Can someone help me to write the function?  My style looks 
like
> this:
>
> <style>
>         .PAGETITLE {
>         font-family: Georgia, "Times New Roman", Times, serif;
>         font-size: xx-large;
>         color: #000000;
>         background-color: #006400 ;
>         }
> </style>
>
> For example, I would want to change "006400" to "8B008B" when the
> appropriate button is chosen.
>
> Should I use a select box instead of multiple buttons?


  Return to Index