|
Posted by Philip Herlihy on May 13, 2005, 11:07 pm
Please log in for more thread options
You mean like this?
http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_event_onmouse or this:
http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_examples_image If so, try this:
http://www.w3schools.com/dhtml/default.asp
--
####################
## PH, London
####################
> Hi,
>
> i have a basic question on CSS.
> Is it possible to change the CSS class definition dynamically by using
> Javascript.
>
> example:
> ich have a css class like this one:
>
> .test {
> color: red;
> }
>
> and some HTML tags like
>
> <span class="test">bla bla</span>
> ..
> <span class="test">bla bla</span>
> ..
> <span class="test">bla bla</span>
>
> and now ic would have a link/button to click and then change the color
> attribute in class test to blue with Javascript (means without reloading
> page and changing it on the server)
>
> is that possible?
>
> thanks.
>
> gerhard
>
>
>
|