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

Hiermenus Go Forth, XXX - DHTML Lab | 5


Logo

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



New Version 4.3 Behavior

1 When we mouse over a menu item with an associated child menu, the child menu does not appear immediately.

Pro:
If we are on our way to a different item then we can do without a child menu on-off flicker.

Con:
If this item is our intended item, then we have to wait for the child menu.

2 After an interval, which we have defined in our parameter variables, the child menu appears, but only if the mouse has "hovered" over the menu item. If we leave the item during the interval, the child menu will not appear.

Pro:
See number 1, above.

Con:
See number 1, above.

3 If we mouse out of the item with the child menu and over an adjacent item, which also has a child menu, the old child menu will remain visible for the specified interval. The child menu associated with the new item will not appear until the interval is over.

Pro:
If we moused out of the first item by mistake, or we are on our way to an item further down in the menu, or we are intending to mouse over the child menu, then we don't want a new child menu appearing.

Con:
If the new item is our intended item, then we have to wait for the old child menu to be replaced by the new one.

4 If we mouse over yet another item during the interval, even if the new item has no child menu, the original child menu remains visible.

Pro:
See number 3, above.

Con:
See number 3, above.

5 If we mouse over the child menu during the interval, regardless of which item in the parent menu we were on, the highlight of the parent menu reverts back to the correct parent item (assuming HM_xx_KeepHilite is true;), and we can continue navigating as if we had never left the original item.

Pro:
We have been given enough time to make our way to the child menu, regardless of which route we took to get there.

Con:
None. If we mouse over the child, we intend to be there.

6 If, instead of navigating through the parent menu and over to the child menu, we "hover" over another item, then the original child menu will disappear and if the new item has a child menu that child menu will appear.

Pro:
None. We have had the original child menu displayed even though we were over our intended item.

Con:
We have had to wait for our intended child menu.

In short, child menus appear and disappear after a specified time interval. This interval gives the user enough time to navigate to the intended item without child menus flickering on and off on the way there.

If the user "hovers" (stays) over an item for the duration of the interval, then any associated child menu will appear. When the user mouses over an adjacent item any visible child menu will not disappear until the interval elapses. This gives the user enough time to get to the child menu lazily, without having to carefully avoid item boundaries.

Trivia: This is how the OS menus on the Windows platform behave.

On the next page, the two new parameter variables that control the new behavior.


Produced by Peter Belesis and

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

URL: https://www.webreference.com/dhtml/column66/3.html