Thank you for your reply. I know by using the class="alt1" I can make the element take on the properties of that class, but the problem is that I want to pass those values on to an external cgi script which returns a graphic to me.
Here's the bigger picture. I'm using the vbulletin forum system (the same one this site uses). vB has the capability to have different "styles" which can give the site a different look. These styles are user selectable and store a lot of their color information in an inline CSS.
The weather module which I have created, uses a cgi script
to get the current weather. Two of the parameters the cgi script calls for is background and text color, which currently are hard coded into the html (&hwvtc=black&hwvbg="alt1"). (Black is the one for text color, the other is the background. They accept standard html colors or hex code f5f6f5, etc.).
The problem is when I choose a different style using a completely different color scheme, the weather module still has the same colors since it is hard coded. This looks funny and not integrated. What I want to be able to do is pull the proper color information from the CSS, since it changes with the style appropriately, and send that color information to the cgi script. I hope that makes some sense. Any help appreciated.