PDA

View Full Version : onmouseover


sjc_unique
08-13-2002, 08:10 PM
hey people.
can use the onmouseover to change the image all right. was wondering if i can apply it the background colour of a table cell. at the moment i have had to create 2 images for the nav bar to do what i wanted. also wondered if i could do it for text colour too.

i can write/understand css if thats how it is done.

just let me know about the code for what i want if you can.

thanks

SJC
______________________

3Grape Productions

redhead
08-13-2002, 08:14 PM
try this:

<table>
<tr>
<td class="menuoff" onmouseover="className='menuon';" onmouseout="className='menuoff';" >
Stuff
</td>
</tr>
</table>

<style>
td.menuoff {
color: #000000;
background-color: #FFFFFF}

td.menuoff {
color: #FFFFFF;
background-color: #000000}
</style>

hope that helps, :thumbsup:

sjc_unique
08-13-2002, 10:03 PM
thanks mate. new there was a simple css answer!!