Previous Example-|-Next Example-|-Return to Chapter Listing

Example 12.15:
onmouseout: When the Mouse Pointer Leaves an Area or Link

[This example works with Netscape Navigator 3. It will not work with Internet Explorer 3.]

Point at the picture, and look in the status bar, and you'll see that there are two hotspots on this imagemap (they don't go anywhere, by the way, so you'll get an error if you click on them) . Simply move the mouse away from the hotspot, and you'll see a message. You may see two, if you happen to sweep across both hotspots.

Image Map


In the BODY of the page we have this script: <img src="bell.gif" usemap="#imagemap" alt="Image Map" height=119 width=144 border=0> <map name="imagemap"> <area shape=rect coords="1, 1, 73, 119" href="nowhere1.htm" onmouseout="alert('You have just missed a hotspot--go back if you want to go to the nowhere1.htm file.')"> <area shape=rect coords="72, 3, 142, 119" href="nowhere2.htm" onmouseout="alert('You have just missed a hotspot-go back if you want to go to the nowhere2.htm file')"> </map>
Previous Example-|-Next Example-|-Return to Chapter Listing