Export (0) Print
Expand All

VML OnMouseOver Attribute

This topic describes VML, a feature that is deprecated as of Windows Internet Explorer 9. Webpages and applications that rely on VML should be migrated to SVG or other widely supported standards.

Note  As of December 2011, this topic has been archived. As a result, it is no longer actively maintained. For more information, see Archived Content. For information, recommendations, and guidance regarding the current version of Windows Internet Explorer, see Internet Explorer Developer Center.

Triggers a mouse event for a shape. Read/write. String.

Applies To


Tag Syntax

<v: element onmouseover=" expression ">


A "mouseover" event is generated when the mouse pointer is on the shape. The value is generated by using the keyword this (as a reference to the object) followed by the object model syntax. For example, to change the fill color to red, use the following:


Note the use of single and double quotation marks to set off the expression.

VML Standard Attribute


When the mouse pointer is on the shape, the fill color will turn from red to green.

   <v:rect id=myrect fillcolor="red"

OnMouseOver Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)



Send comments about this topic to Microsoft

Build date: 2/7/2012

Community Additions

© 2015 Microsoft