Hiermenus Go Forth, IX - DHTML Lab | 6 | WebReference

Hiermenus Go Forth, IX - DHTML Lab | 6

Logo

Hiermenus Go Forth, IX:
Version 4.0.2 - The Complete Script (Full-Window)



This is the new HM external file that does the browser detection and the conditional loading of the HM arrays and script (HM_Loader.js in the download.)

/***************************************************************************
                         Version 4 Menu Loader
enables easier backward-compatibility of pages while allowing Netscape 6
to conditionally load scripts  
***************************************************************************/
   HM_DOM = (document.getElementById) ? true : false;
   HM_NS4 = (document.layers) ? true : false;
HM_NS4old = (HM_NS4 && (parseFloat(navigator.appVersion) < 4.02));
    HM_IE = (document.all) ? true : false;
   HM_IE4 = HM_IE && !HM_DOM;
   HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
  HM_IE4M = HM_IE4 && HM_Mac;
HM_IsMenu = (HM_DOM || (HM_NS4 && !HM_NS4old) || (HM_IE && !HM_IE4M));
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return};
function HM_f_PopDown(){return};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;
if(HM_IsMenu) {
    document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='hierArrays.js' TYPE='text/javascript'><\/SCR" + "IPT>");
    document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='hierMenus.js' TYPE='text/javascript'><\/SCR" + "IPT>");
}

Next, the external menu array file.


Produced by Peter Belesis and

All Rights Reserved. Legal Notices.
Created: Jan 09, 2001
Revised: Jan 30, 2001

URL: https://www.webreference.com/dhtml/column45/6.html