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

Q708 Can I have a mouse over in a client side image map change a different image on the same page?

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

Q708 Can I have a mouse over in a client side image map change a different image on the same page?

Try:

<MAP NAME="image-map">
<AREA SHAPE="RECT" COORDS="15,15,85,85" HREF="javascript:alert('red')"
    onMouseOver="if (document.images) document.images['otherimage'].src = 'image2.gif'"
    onMouseOut="if (document.images) document.images['otherimage'].src = 'image1.gif'">
</MAP>

<IMG SRC="image.gif" BORDER=0 WIDTH=100 HEIGHT=100 USEMAP="#image-map">
<IMG NAME="image1" SRC="image.gif" BORDER=0 WIDTH=100 HEIGHT=100>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


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