DHTML Lab - dhtmlab.com - Hierarchical Menus Ver. 3 - Addendum IX (v3.09) | 2
Hierarchical Menus Ver. 3 - Addendum IX (v3.09)
enabling menus for IE5 Macintosh
If we have learned anything about IE5Mac, it must be this:
Internet Explorer for Macintosh, Version 5, is a new browser, with great support for the new way of dynamically creating content, the DOM. Support for the older IE HTML-string building method exists, but don't count on it for advanced scripting.
In this article, we went through, problem-by-problem, what an author may experience when adapting a script for IE5Mac. These problems would not exist if the page was directly authored for IE5. Our previous version had common code for IE4 and IE5. We have had to break this code up to create a working version of HM for IEMac.
Very soon, these modifications will form the core script of an elegant HM Version 4 for IE5.
Upgrading
To upgrade to Version 3.09, you must:
- Allow access to IE5Mac by modifying your in-page browser-detection variables to read:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- NS4 = (document.layers); IE4 = (document.all); ver4 = (NS4 || IE4); IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1); isMac = (navigator.appVersion.indexOf("Mac") != -1); isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac)); function popUp(){return}; function popDown(){return}; if (!ver4) event=null; //--> </SCRIPT>
- Replace the current external hierMenus.js file with version 3.09, reproduced in full on the following page.
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.Created: June 16, 2000
Revised: June 16, 2000
URL: https://www.webreference.com/dhtml/column21/addendum9/10.html