Area.onMouseOver

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax

onMouseOver="command"

Description

The onMouseOver event handler is invoked when the user moves the mouse pointer out of the region defined by the <area> tag.

Example

Listing 7.15 creates a clothing site with a picture of a shirt. Clicking the shirt graphic takes you to a site about red shirts. By simply moving the mouse over the region causes an alert box to be posted alerting the user that a mouseover event occurred.

Listing 7.15 Using the onMouseOver Property of the Area Object
 <html> <body> <h2>The Clothes Page</h2> Click on the sales tag to see the clothes that are on sale:<br> <map name="clothesMap"> <area name="sale" coords="1,1,48,48" href="http://www.clothes.comspecials.html" ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.