Forum Moderators: open
I have a small animated GIF that runs with an image swap on mouseover. It's like a little propellor that turns when the mouse is over it. I use this as a menu link on a site along with adjacent plain text links. Is there any way that I can make it turn when the mouse is over the adjacent text as opposed to just the image?
NOTE: edited for clarity
In the <a> tag around you image you should find some thing like:
onMouseOver="MM_swapImage('Name of Image','','Location of Rollover Image',1)"
The MM_swapimage is a javascript function. In the script above, the target image to change is specified (Name of Image in my example) so you should be able to copy this attribute of the tag, and also the
onMouseOut="MM_swapImgRestore()" attribute into the <a> tag of your text link.
For Example this would be the code of the text link:
<a href="http://example.com/index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image','','rollover.gif',1)">Home</a>
Where Image must be the name of the image you want to change.
Hope this helps
Chris