spacer

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


home / experts / dhtml / column56
Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

Logo

Hiermenus Go Forth, XX:
Version 4.0.13 - The Complete Script (Full-Window)



HM_ChildSecondsVisible Timeout Problem

In Version 4.0.12, we introduced the HM_ChildSecondsVisible parameter for creating pauses between the time a user mouses out of a child menu and the hiding of the menu tree. That is, of course, if HM_ClickKill is false.

If, however, the pause is long enough, a user may have time to display a second menu tree, hiding the first menu tree, and then mouse out of the second tree, starting another timeout before the first one has elapsed. This leads to the second tree being hidden after the first timeout has elapsed, which is a shorter period than intended.

Obscure? Possibly. But as James Musial and Matt Schroeder have pointed out, it may cause problems, if only by disorientating the user.

Wherever the following statement occurs in the script,

if(!HM_ClickKill)
HM_HideAllTimer = setTimeout("HM_CurrentMenu.hideTree()",HM_ChildMilliSecondsVisible); 

we have changed it to read:

if(!HM_ClickKill) {
    clearTimeout(HM_HideAllTimer);
    HM_HideAllTimer = null;
    HM_HideAllTimer = setTimeout("HM_CurrentMenu.hideTree()",HM_ChildMilliSecondsVisible); 
}

Now any previous instance of the timer is cancelled whenever we need to fire it up again.

Files Changed in Version 4.0.13

You will need to overwrite previous versions of the above files to upgrade to 4.0.13.

HM_Loader.js has been changed to include the HM_GL_ImageSrcOver and HM_GL_ImageSrcLeftOver parameters. Both are optional, so your HM_Loader.js should be updated only if you have need to use either of them.

On the next page, the sample page included in the download.


Produced by Peter Belesis and


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS · Sending an HTML and Plain Text E-newsletter with ASP.NET, Part 2
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
ANSI SQL Hierarchical Data Processing Basics · Top 10 Threats to Wireless Security · Nuvio Intros NuvioFlex Virtual PBX

All Rights Reserved. Legal Notices.
Created: July 12, 2001
Revised: July 12, 2001

URL: http://www.webreference.com/dhtml/column56/6.html