Hiermenus Go Forth, XXX - DHTML Lab | 6 | WebReference

Hiermenus Go Forth, XXX - DHTML Lab | 6


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

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

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