|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
G'day.
say i have a <TD> right? im using this code to change the background right? OnMouseOver="Style.backgroundcolor='#000000';" OnMouseOut="Style.backgroundcolor='#FFFFFF';" ok that works ok.. ( i retyped it so its not exact ) what about changing text colours in the cell ? if i can change the background colour of the cell i MUST be able to change the text right? help.. murder.. death.. any ideas ? whats the code.. Style.something or Style.td.something ? help Kai. |
|
#2
|
|||
|
|||
|
you can do it like this: make two classes in your stylesheet something like menuon and menuoff.
<style type="text/css"> td.menuon { background-color: #000000; color: #FFFFFF; } td.menuoff { background-color: #FFFFFF; color: #000000; } </style> <td class="menuoff" onmouseover="className='menuon';" onmouseout="className='menuoff';"> </td> |
|
#3
|
|||
|
|||
|
THANK-YOU
Thank you so much.. i've been awaiting an answer to my question.. thanks !!
kaiilan. |
|
#4
|
|||
|
|||
|
no problem just remember though that if you are using it for a navigation menu you need to add an onclick event. like this:
onclick="location.href='/there.html';" |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS - TD font colour change on mouse over... how? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|