DHTML Lab: Hierarchical Menus Version 3 | 4
Hierarchical Menus: Version 3
Click the link above to reveal menu. Click anywhere on the page to hide menu.
Parameters used for the menus on this page:
menuVersion = 3; menuWidth = 120; childOverlap = 50; childOffset = 5; perCentOver = null; secondsVisible = .5; fntCol = "blue"; fntSiz = 10; fntBold = false; fntItal = false; fntFam = "sans-serif"; backCol = "#DDDDDD"; overCol = "#FFCCCC"; overFnt = "purple"; borWid = 2; borCol = "black"; borSty = "solid"; itemPad = 3; imgSrc = "tri.gif"; imgSiz = 10; separator = 1; separatorCol = "red"; isFrames = false; keepHilite = true; NSfontOver = true; clickStart = true; clickKill = true; showVisited = "yellow";
Two final functions, linkIt() and cancelSelect() remain the same. linkIt() loads the new page specified in the menu arrays, or it runs a function. cancelSelect() disallows text highlighting in menus for IE4.
This completes our look at Hierarchical Menus, Version 3. The instructions for including the menus in your pages are repeated below.
To create hierarchical menus in a full-window page:
To create hierarchical menus in a frameset:
Version 3 has been written almost completely based on reader feedback. You know who you are, and a big thanks goes out to you.
The Future of the Script
Will there be a version 4? For sure. Suggestions for improvements and problems should be posted in the Hier Menus Want thread in the DHTML Forum. They will be taken into consideration.
The next three pages contain the usual full code repeated
Produced by Peter Belesis andAll Rights Reserved. Legal Notices.
Created: Sept. 03, 1998
Revised: Sept. 03, 1998