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

Q414 Can you use an imagemap with onMouseOver and onMouseOut, if so, what is the proper syntax?

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

Q414 Can you use an imagemap with onMouseOver and onMouseOut, if so, what is the proper syntax?

Yes:

<map name="image-map">
<area shape="rect" coords="15,15,85,85" href="javascript:alert('Square')"
   onMouseOver="self.status='Square';return true"
   onMouseOut="self.status='';return true">
<area shape="rect" coords="93,15,110,85" href="javascript:alert('Rectangle')"
   onMouseOver="self.status='Rectangle';return true"
   onMouseOut="self.status='';return true">
<area shape="circle" coords="150,50,35" href="javascript:alert('Circle')"
   onMouseOver="self.status='Circle';return true"
   onMouseOut="self.status='';return true">
</map>

<img src="image.gif" border=0 width=200 height=100 usemap="#image-map">

Feedback on 'Q414 Can you use an imagemap with onMouseOver and onMouseOut, if so, what is the proper syntax?'


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.