|
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?'
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.