Mon, 2003-10-06 17:03
Hello.
I have a text tag which uses a certain css class:
<text class=heading>This is the text</text>
Does somebody know how can I make this text tag use other class when the mouse is over this text ?
(Because I want that the color of the text will be change on mouse over, lika the property "alink")
Thanks, Edi.
Tue, 2003-10-07 09:49
#1
Text hover
Hi edibusl,
Most browsers don't support hover on anything but "a" elements.
So you may have to use JavaScript. <span class="heading" onmouseover="javascript:this.className='newclass';" onmouseout="javascript:this.className='heading';">This is the text</span>
Hope that helps