spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com


home / experts / dhtml / column66

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management
Logo

Hiermenus Go Forth, XXX:
Version 4.3 - Full-Window



New Parameter Variables

Two new hover-related parameter variables have been introduced. Both can be either global (HM_GL_xxx) or page-specific (HM_PG_xxx.)



HM_xx_HoverTimeTop

This parameter defines the interval, in milliseconds, to wait before displaying or hiding a child menu associated with an item in any top-level menu.

If, for example, we wanted to specify an interval of one second, the syntax would be:

HM_xx_HoverTimeTop = 1000;

If we wanted no interval for top-level menus, the syntax would be:

HM_xx_HoverTimeTop = 0;


HM_xx_HoverTimeTree

This parameter defines the interval, in milliseconds, to wait before displaying or hiding a child menu associated with an item in any menu other than a top-level menu.

To specify an interval of two seconds, use this syntax:

HM_xx_HoverTimeTree = 2000;

To specify no interval use this syntax:

HM_xx_HoverTimeTop = 0;


Notes

We have introduced two separate parameters because you may want the behavior for top-level menus and other-level menus to be different. You might want the top-level child menus to appear immediately, to alert the user to the fact that the menus actually work! As users move down in a tree hierarchy, they may get lazier with their mouse and need an interval.

You choose what is best for your implementation.

If you require the old pre-4.3 behavior, then either:

  1. Omit the parameters.
    The default interval time that kicks in if no relevant parameters are specified is 0.

  2. Specify 0 milliseconds for both parameters
    HM_xx_HoverTimeTop = 0;
    HM_xx_HoverTimeTree = 0;

On the next page, final notes.


Produced by Peter Belesis and

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags

All Rights Reserved. Legal Notices.
Created: June 10, 2002
Revised: June 10, 2002

URL: http://www.webreference.com/dhtml/column66/4.html