PDA

View Full Version : OnEvent Mouseover on an image..


steve55
10-08-2002, 05:14 PM
Hi,


I have the following code on a web page:


<td width="76"><a href="http://www.thestudentzone.com/articles/advice.html"><img src="menu/advice.gif" width="76" height="20" name="menu0" id="menu0" onMouseOver="showMenu(event)" onMouseOut="hideMenu(event)" border="0"></a></td>


Can I remove the image and replace it with text, so that the mouseover event still works and if so can you show me an example of the code..

Many Thanks

adios
10-08-2002, 05:21 PM
Just use that ol' link...

<a href="http://www.thestudentzone.com/articles/advice.html" class="something"
onMouseOver="showMenu(event)" onMouseOut="hideMenu(event)">show menu</a>

The 'class' is a reference to CSS, which will allow you to set the appearance of the link.

http://www.w3schools.com/css/css_syntax.asp