1 reply [Last post]
edibusl
Offline
newbie
Last seen: 17 years 15 weeks ago
Joined: 2003-10-06
Posts: 1
Points: 0

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.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 6 days 10 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

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