DHTML Lab: Hierarchical Menus, III; Frames - The Complete Code 2/3 | WebReference

DHTML Lab: Hierarchical Menus, III; Frames - The Complete Code 2/3

home / experts / dhtml / column18
Logo

  Hierarchical Menus in Frames
  SPECIAL EDITION; the director's cut 2/3

The JavaScript Arrays (hierArrays.js)

Listed below are the arrays used on this column's example menus. Modify these arrays for your own pages. Remember, the final element in an array is not followed by a comma! This file, along with the external routine file, may be download in ZIP format.

For more complex hierarchical menu arrays, please refer to the listings in column 14 and column 15.

arMenu1 = new Array(
"Experts","http://www.webreference.com/experts/",1,
"Contents","http://www.webreference.com/index2.html",0,
"Services","http://www.webreference.com/index2.html",0,
"About","http://www.webreference.com/about.html",0
)
arMenu1_1 = new Array(
"3-D Animation","http://www.webreference.com/3d/",1,
"Design","http://www.webreference.com/dlab/",1,
"DHTML","http://www.webreference.com/dhtml/",1,
"Internet","http://www.webreference.com/outlook/",1,
"JavaScript","http://www.webreference.com/js/",1
)
arMenu1_1_1 = new Array(
"Lessons","http://www.webreference.com/3d/",0,
"Glossary","http://www.webreference.com/3d/glossary/",0
)
arMenu1_1_2 = new Array(
"Articles","http://www.webreference.com/dlab/",0,
"HTML Unleashed","http://www.webreference.com/dlab/books/",0,
"Dessert Links","http://www.webreference.com/dlab/dessert.html",0,
"About","http://www.webreference.com/dlab/about.html",0,
"People Say","http://www.webreference.com/dlab/peoplesay.html",0
)
arMenu1_1_3 = new Array(
"Columns","http://www.webreference.com/dhtml/",0,
"Links","http://www.webreference.com/dhtml/links.html",0,
"About","http://www.webreference.com/dhtml/about.html",0
)
arMenu1_1_4 = new Array(
"Columns","http://www.webreference.com/outlook/",0,
"License Plate Gallery","http://www.webreference.com/outlook/license/",0
)
arMenu1_1_5 = new Array(
"Columns","http://www.webreference.com/js/",0,
"JxPharmacy","http://www.webreference.com/js/pharmacy/",0,
"Doctor What?","http://www.webreference.com/js/about.html",0
)
arMenu2 = new Array(
"Web/Net","",0,
"WebMaster","",0,
"On-Site Originals","",1,
"About Us","",0
)
arMenu2_3 = new Array(
"Cool Central","http://www.coolcentral.com",0,
"Developer's Corner","http://www.webreference.com/dev/",0,
"Expert Columnists","http://www.webreference.com/experts/",0,
"Feature Articles","http://www.webreference.com/articles.html",0,
"Freebies","http://www.webreference.com/freebies.html",0,
"Services","http://www.webreference.com/services/",0,
"Web Headlines","http://www.webreference.com/headlines/",0,
"What's New?","http://www.webreference.com/new/",0
)

And, finally, the external JavaScript file with the main script.


Produced by Peter Belesis and

All Rights Reserved. Legal Notices.
Created: Apr. 08, 1998
Revised: Apr. 08, 1998

URL: http://www.webreference.com/dhtml/column18/allCode2.html