| home / experts / dhtml / column38 |
|

The menu to the left has an item (the third one) that is permanently highlighted. The menu array looks like this:
HM_Array9 = [ [...], ["Doc JavaScript","http://www.webref.com/js/",1,0,0], ["HTML with Style","http://www.webref.com/html/",1,0,0], ["DHTML Lab",,0,"location=='6.html'",0], ["Xploring XML","http://www.webref.com/xml/",1,0,0], ["3-D Anim Workshop","http://www.webref.com/xml/",1,0,0], ]
The menu to the left has an item (the first one) that is permanently highlighted, creating a menu heading. The menu array looks like this:
HM_Array10 = [ [...], ["WebRef Experts",,0,1,0], ["Doc JavaScript","http://www.webref.com/js/",1,0,0], ["HTML with Style","http://www.webref.com/html/",1,0,0], ["DHTML Lab","http://www.webref.com/dhtml/",1,0,0], ["Xploring XML","http://www.webref.com/xml/",1,0,0], ["3-D Anim Workshop","http://www.webref.com/3d/",1,0,0] ]
The menu to the left has an item (the first one) that is permanently highlighted, creating a menu heading. All items, except the first, have child menus. The child menus each contain two items. The first one is permanently highlighted and the second has no rollover behavior. We have created descriptive pop-ups with headings! The menu arrays looks like this:
HM_Array11 = [ [...], ["WebRef Experts",,0,1,0], ["Doc JavaScript","http://www.webref.com/js/",1,0,1], ["HTML with Style","http://www.webref.com/html/",1,0,1], ["DHTML Lab","http://www.webref.com/html/",1,0,1], ["Xploring XML","http://www.webref.com/xml/",1,0,1], ["3-D Anim Workshop","http://www.webref.com/3d/",1,0,1] ] HM_Array11_2 = [ [], ["JavaScript",,0,1,0], ["Everything you always wanted to know about JavaScript by our resident experts, Yehuda and Tomer Shiran",,0,0,0] ] HM_Array11_3 = [ [], ["HTML/CSS",,0,1,0], ["Everything you always wanted to know about HTML and CSS by our resident expert, Stephanos Piperoglou",,0,0,0] ] HM_Array11_4 = [ [], ["DHTML",,0,1,0], ["Everything you always wanted to know about DHTML by our resident expert, Me",,0,0,0] ] HM_Array11_5 = [ [], ["XML",,0,1,0], ["Everything you always wanted to know about XML by our resident expert, Michael Classen",,0,0,0] ] HM_Array11_6 = [ [], ["3-D Animation",,0,1,0], ["Everything you always wanted to know about 3-D Animation by our resident expert, Robert Polevoi",,0,0,0] ]
The Hierarchical Menu script is an example of DHTML.
The text link, above, causes a top-level menu to appear upon mouseover. The menu has two items. The first one is permanently highlighted and the second has no rollover behavior. We have created pop-up tool-tips with headings! The menu array looks like this:
HM_Array12 = [ [...], ["Dictionary",,0,1,0], ["Dynamic Hypertext Markup Language",,0,0,0] ]
On the next page, we'll look at the fifth item parameter.
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.
Created: Oct 03, 2000
Revised: Oct 03, 2000
URL: http://www.webreference.com/dhtml/column38/6.html