DHTML Lab: Hierarchical Menus Version 3; The Complete Code 2/3
Hierarchical Menus Version 3
SPECIAL EDITION; the director's cut 2/3
The JavaScript Arrays (hierArrays.js)
Listed below are sample arrays for four menu trees, varying from one to three levels. You may use them as the basis for your own menu arrays.
Don't forget that the array structure differs from that in previous versions. Replace any old arrays with new ones.
arMenu1 = new Array( 120, 200,"", "","", "#3399FF","#55BBFF", "#0000FF","#000088", "Experts","https://www.webreference.com/experts/",1, "Contents","https://www.webreference.com/index2.html",0, "Services","https://www.webreference.com/index2.html",0, "About","https://www.webreference.com/about.html",0 ) arMenu1_1 = new Array( "3-D Animation","https://www.webreference.com/3d/",0, "Design","https://www.webreference.com/dlab/",0, "DHTML","https://www.webreference.com/dhtml/",1, "Internet","https://www.webreference.com/outlook/",0, "JavaScript","https://www.webreference.com/js/",0 ) arMenu1_1_3 = new Array( "Columns","https://www.webreference.com/dhtml/",0, "Diner","https://www.webreference.com/dhtml/diner/",0, "Dynomat","https://www.webreference.com/dhtml/dynomat/",0 ) arMenu2 = new Array( 175, 150,300, "black","white", "#2D9B83","#4BB9A1", "black","black", "Experts","https://www.webreference.com/experts/",1, "Contents","https://www.webreference.com/index2.html",0 ) arMenu2_1 = new Array( "3-D Animation","https://www.webreference.com/3d/",0, "Design","https://www.webreference.com/dlab/",0, "DHTML","https://www.webreference.com/dhtml/",0, "Internet","https://www.webreference.com/outlook/",0, "JavaScript","https://www.webreference.com/js/",0 ) arMenu3 = new Array( "", "","", "","", "","", "","", "Experts","https://www.webreference.com/experts/",0, "Contents","https://www.webreference.com/index2.html",1 ) arMenu3_2 = new Array( "Features","https://www.webreference.com/articles.html",0, "Forum","https://www.webreference.com/cgi-bin/Ultimate.cgi?action=intro",0, "How-to","https://www.webreference.com/dev/",0, "New","https://www.webreference.com/headlines/",0, "Hot Sites","https://www.webreference.com/hot/",0 ) arMenu4 = new Array( 168, "","", "black","white", "#F84130","#FF5F4E", "#9A0E20","white", "Experts","https://www.webreference.com/experts/",0, "Services","https://www.webreference.com/index2.html",1 ) arMenu4_2 = new Array( "Domains","https://www.webreference.com/services/dns/",0, "Graphics","https://www.webreference.com/services/gw/",0, "Jobs","https://www.webreference.com/jobs/",0, "Reference","https://www.webreference.com/services/reference/",0, "ROADMAP","https://www.webreference.com/roadmap/",0, "Search","https://www.webreference.com/cgi-bin/search.cgi",0, "Validation","https://www.webreference.com/services/validation/",0, "Cool Sites","https://www.coolcentral.com",0 )
Finally, a listing of the main Version 3 external script:
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.Created: Sept. 03, 1998
Revised: Sept. 03, 1998
URL: https://www.webreference.com/dhtml/column21/allCode2.html