|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Is there a way to change the color of text on event?
I tried doing it with document.write() and refreshing the page but it looks ugly when the page flashes to be refreshed .. ![]() |
|
#2
|
|||
|
|||
|
Yep, but only in IE 4+. Just access the style.color property of the element. Ie:
<b onMouseover="this.style.color='red'">Move your mouse over</b> |
|
#3
|
|||
|
|||
|
Unfortunately, it has to work on all browsers. In fact I was aware of the style.color property in IE.
I guess if I could refresh the page without making it flash I'd have it resolved. <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by BillyPeterson: Yep, but only in IE 4+. Just access the style.color property of the element. Ie: <b onMouseover="this.style.color='red'">Move your mouse over</b>[/quote] |
|
#4
|
|||
|
|||
|
Hmmm, I guess you could try and use layers in NS to accomplish the color change effect.
The following tutorial online might help: http://www.wsabstract.com/javatutors/crossmenu.shtml |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Changing Text Color on Event |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|