Hi everyone,
New to ASP.NET so bear with me. I have created a very simple table, seven columns one row, in the end I would like it to act as my menu. At the moment it contains a hyperlink in each of the seven cells, with a little cell background color (just simple stuff).
My problem is I have been trying to liven it up by changing the font and background color when the mouse hovers over it, and changing it back again when the mouse is removed. I have tried loads of combinations of code but had no luck, also had a good search on the internet to no avail. Below you can see what I tried so far:
<td onmouseover="this.style.backgroundColor='red';"
onmouseout="this.style.backgroundColor='#797B79';">
<a href="http://www.google.com"><span>HOME</span></a></td>
Now this works fine at the mo, the cell changes to red then back to my custom color. My question is how do I also change the Font/Foreground color aswell as the background color?
Sorry if this sounds nooby,
Cheers,
Tom.