[thelist] javascript locking property from CSS

Izaak Branderhorst izaak at victoria.tc.ca
Tue Feb 8 11:28:34 CST 2005


I've run into a situation where using Javascript to change an element's 
textDecoration property will prevent the element's CSS :hover selector 
from changing text-decoration any further.

This is illustrated at 
<http://www.typeleft.com/files/onmouseover_vs_csshover/index2.html>.

:hover over the header. click on the image. :hover over the header again. 
observe how only 1 of the CSS rules continue to work.

This occurs in at least ff 1.0 and ie6. Any advice?

Izaak


More information about the thelist mailing list