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

Q1735 How can an imagemap capture the focus when the mouse moves over a hotspot?

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

The follow works on browsers that support the focus() method:

<html>

<body>

<map name="image-map1">
<area shape="rect" coords="15,15,85,85" href="default.htm"  onMouseOver="if (this.focus) this.focus();">
<area shape="rect" coords="93,15,110,85" href="default.htm" onMouseOver="if (this.focus) this.focus();">
<area shape="circle" coords="150,50,35" href="default.htm"  onMouseOver="if (this.focus) this.focus();">
</map>

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


</body>

</html>

Feedback on 'Q1735 How can an imagemap capture the focus when the mouse moves over a hotspot?'

©2018 Martin Webb