Click to return to the DHTML, HTML     
tooltip Behavior     DELAY Attribute | delay P...     Behaviors Library    
Web Workshop  |  DHTML, HTML & CSS

AVOIDMOUSE Attribute | avoidMouse Property


Sets or retrieves whether the tooltip behavior moves away from the mouse cursor.

Syntax

XML<Prefix:CustomTag ID = sID STYLE="behavior:url('tooltip.htc')" AVOIDMOUSE = "0" | "1" .../>
ScriptingoTooltip.avoidMouse[ = "0" | "1"]

Possible Values

Prefix Prefix used to associate CustomTag with a namespace. This prefix is set using the XMLNS attribute of the HTML tag.
CustomTag User-defined tag.
sID String that uniquely identifies the object.
0Integer specifying that the ToolTip does not move away from the mouse cursor.
1Integer specifying that the ToolTip moves to avoid contact with the mouse cursor.

The property is read/write with a default value of 0.

Remarks

If avoidMouse is set to 1 and the user moves the mouse cursor away from the element and onto the ToolTip, the ToolTip disappears. If the property is set to 0, the ToolTip does not disappear when the mouse cursor moves directly from the element to the ToolTip.

The avoidMouse property is available only to objects participating in the tooltip behavior.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
tooltip


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.