Idocs Guide to HTML

Attributes for <AREA ...>
onMouseOver = "script command(s)"
onMouseOut = "script command(s)"

Usage Recommendation
use it, but don't rely on it

Looking for info on how to make an image map?

See our tutorial How to Make an Image Map
onMouseOver and onMouseOut work similar to their counterparts in <A ...>. These event handlers are triggered when the mouse moves over the area (onMouseOver) and when it moves out from being over the area (onMouseOut).

<AREA HREF="freelance.html" ALT="Freelance" 
    COORDS="31,0,164,26" SHAPE=RECT 
    onMouseOver="alert('Mouse Over!')">

gives us Freelance Albums Jobs Log Out Home Image Map

<AREA HREF="freelance.html" ALT="Freelance" 
    COORDS="31,0,164,26" SHAPE=RECT 
    onMouseOut="alert('Mouse Out!')">

gives us Freelance Albums Jobs Log Out Home Image Map

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.