Link to home
Start Free TrialLog in
Avatar of SIMONWALLACE
SIMONWALLACE

asked on

Colour changes of a table cell when mouse travels over it

Please find below an exhert of one of my HTML programs:

<table bgcolor="#0047D5" bordercolor="#BOFFFF" border="5" cellspacing="5" cellpadding"5">            
<tr>
<a href="index.html" target="_top"><td align="center"><font color="YELLOW">Homepage</font></td></a></tr>
</table>

I know that I need to use onMouseover and onMouseout to make this cell change when the mouse is placed over it but I can't work out how.

How do I attach an explanation to what the button does when the mouse goes over it.

Thanks very much in advance.

Simon Wallace
Avatar of oubelkas
oubelkas

Button does not support the onMouseover nor the onMouseout event handler. A possible solution is using an image instead of a button. Then you can add the alt property (hint box) which displays the text you want.

e.g.

<input type="image" src="myimage.gif" alt="this text will be shown after hovering for a few secs">

So you could use a button like image for this. You can use the onClick event handler or other event handlers with this of course.

Joseph

ASKER CERTIFIED SOLUTION
Avatar of dsplets
dsplets

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial