DHTML Lab: Hierarchical Menus Ver. 3 - Addendum (v3.01)
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.
This is a problem(bug)-fix .
Feedback 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."
Luckily, 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.
It 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."
If 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 Version
This 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 andAll Rights Reserved. Legal Notices.
Created: Sept 20, 1998
Revised: Sept 20, 1998