On Wed, 25 Aug 2004 16:53:50 +0400, Nikolay I.Nikolskiy <ni*@tepkom.ru>
wrote:
I have class defined in CSS
<style>
.bigone {color:red;}
</style>
and html like
<span class=bigone>test1</span>
<span class=bigone>test2</span>
...
Is it possible to change dinamically using javaScript color of all
elements
of class bigone to blue?
thanks,
Nikolay.
Why would you want this? I'm really confused. You realize that
no-Javascript UAs will not get the change? If the class won't have the
color in the stylesheet, then why set it at all?
Finally, why not do it server-side with some PHP which puts in the head
<style type="text/css">.bigone{color:blue}</style> ? Doing it client-side
with Javascript isn't as smart as doing it on the server.
A test page URL would be useful.