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

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

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

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

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


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.