Please Note:
HierMenus is protected by copyright laws. Use of the HierMenus code requires a paid licensing agreement.
Click Here to Register

Site Navigation
Bulletins
About
Documentation
FAQ
Samples
Known Issues
Technology Jobs

internet.commerce

Partner With Us














          
internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 
HierMenusCentral Enhance the Functionality of Your Web Site with DHTML HierMenus.
    

home / docs / archive / version 4 / instructions / step 1

V4 Setup Instructions
Step 1 of 6

View all StepsStep 1 of 6Go to Step 2
Place the overhead, function-declaration script in the HEAD of your document.

The following script must be placed early in your document. It is available to all JavaScript-enabled browsers:

<HTML>
<HEAD>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

//-->
</SCRIPT>

Four dummy functions are declared, HM_f_PopUp(), HM_f_PopDown(), popUp() and popDown(). These functions may be called by links in the document, links that are visible to all browsers. The actual functions are re-declared in the menu script later, for menu-enabled browsers. By placing these "dummy" functions here, older browsers will not generate an error when they encounter a menu-enabled link since they will find and execute these dummy versions. HM_f_PopUp() and HM_f_PopDown() are the actual functions declared in HierMenus; the other two functions are provided for compatibility with previous versions of HM that used popUp() and popDown().

Fourth generation browsers have a built-in event object, passed as an argument to HM_f_PopUp(). Old browsers do not have this object, so they consider event to be a user-defined variable. We must, therefore, define it as a dummy variable for these browsers to again avoid errors.

Note: If you are writing for a version 4+ environment only, and you are only using permanently available menus (i.e., you are not using onMouseOver and onMouseOut within existing page links to display your menus - more on this later), you may omit this step.

View all Steps
Step 1 of 6
Go to Step 2

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Created: 3/25/2004
Updated: 3/25/2004
URL: http://www.hiermenuscentral.com/documentation/archive/v4/instructions/step1.html