| home / experts / dhtml / column21 / addendum |
![]() |
Hierarchical Menus Ver. 3 - Addendum (v3.01)
|
|
||||||||
|
Click the link above to reveal sample menu.
Thanks to Mark Sanderson and Marty Blase for bringing this problem to my attention. |
Our HierMenus columns can be appreciated by all DHTML developers and HierMenus fans. If you plan to use HierMenus on your own Web site, however, you will need to purchase a HierMenus license. Contact Barry Pullen via our contact form or call him at (203) 662-2868 for further information (be sure to let her know how you plan to use HierMenus and tell him a bit about your organization, as well). This is a problem(bug)-fix . The SymptomFeedback from UNIX users of Hierarchical Menus, Version 3, revolved around this issue: "The browser displayed the first menu, highlighted two or three items as my mouse moved and then crashed." The DiagnosisLuckily, the source of the problem was easy to trace: the new NSfontOver parameter:
As stated above, this parameter is included as an option, unlike the IE4 counterpart, because it slows down response-time. It was created after much reader demand. The TreatmentIt seems Navigator for UNIX does not like the constant element content updating. If NSfontOver is set to false, the problem disappears. We, therefore, add these two lines to the beginning of our hierMenus.js script: isWin = (navigator.appVersion.indexOf("Win") != -1)
if (!isWin && !isMac) NSfontOver = showVisited = false;
The first statement creates the isWin variable, true if the browser being used is a Windows browser. Earlier, our in-page script had created the isMac variable to identify Macintosh browsers. A browser that is neither Windows nor Macintosh is a UNIX browser: For UNIX browsers, we set the value of NSfontOver to false. Notice that another potential trouble- maker, showVisited, is also set to false, as it, too, is slightly "unconventional." The ResultsIf you want your Navigator users to have a font color change upon menu item mouseover, they still can, if they're using a Windows or Macintosh browser. UNIX visitors will simply not have this feature enabled. The New VersionThis script addition creates the first "maintenance" version of Hierarchical Menus. We have named it version 3.01, and it is reproduced on the next page in full. Please update your present version. | |||||||||
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.
Created: Sept 20, 1998
Revised: Sept 20, 1998
URL: http://www.webreference.com/dhtml/column21/addendum/