Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q837 How can I make an image appear in a specific location using onMouseOver, and not replace the image the mouse is over?

irt.org | Knowledge Base | JavaScript | Image | Q837 [ previous next ]

Q837 How can I make an image appear in a specific location using onMouseOver, and not replace the image the mouse is over?

Create a blank image that is swapped:

<SRC IMG="blank.gif" NAME="blank" WIDTH="100" HEIGHT="100>

<P>
<A HREF="home.htm"><IMG SRC="home.gif" onMouseOver="if (document.images) document.images['blank'].src = 'home.gif'" onMouseOut="if (document.images) document.images['blank'].src = 'blank.gif'" BORDER="0" HEIGHT="100"
WIDTH="100"></A>
</P>

<P>
<A HREF="links.htm"><IMG SRC="links.gif" onMouseOver="if (document.images) document.images['blank'].src = 'links.gif'" onMouseOut="if (document.images) document.images['blank'].src = 'blank.gif'" BORDER="0" HEIGHT="100" WIDTH="100"></A>
</P>
 
<P>
<A HREF="email.htm"><IMG SRC="email.gif" onMouseOver="if (document.images) document.images['blank'].src = 'email.gif'" onMouseOut="if (document.images) document.images['blank'].src = 'blank.gif'" BORDER="0" HEIGHT="100" WIDTH="100"></A>
</P>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.