asp.net.ph

Menu.DisappearAfter Property

System.Web.UI.WebControls Namespace   Menu Class


.NET Framework version 2.0

Returns or sets the duration for which a dynamic menu is displayed after the mouse pointer is no longer positioned over the menu.

Syntax


Inline <asp:menu disappearafter = intValue ... >
Script Menu.DisappearAfter [ = intValue ]

Property Value


intValue The amount of time ( in milliseconds ) a dynamic menu is displayed after the mouse pointer is no longer positioned over the menu.

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

Remarks

By default, a dynamic menu automatically disappears after a certain duration when the mouse pointer is no longer positioned over the menu. Use the DisappearAfter property to specify the duration.

NOTE: A dynamic menu disappears immediately if the user clicks outside of the menu.

You can also specify that a dynamic menu should never automatically disappear by setting this property to -1. In this case, the dynamic menu item will disappear only when the user clicks outside the menu.

Example

The following example demonstrates how to use the DisappearAfter property to specify the duration for which a dynamic menu is displayed after the user moves the mouse pointer away from the menu.

<asp:menu id = "navigationMenu"
   staticdisplaylevels=2
   staticsubmenuindent=10
   disappearafter=1000
   runat = "server">

   <items>
      ...
   </items>

</asp:menu>
See Also

Menu Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph