Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Image | Q414 [ previous next ]

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?'

©2018 Martin Webb