spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / dhtml / column18
Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

Hierarchical Menus in Frames
the menu arrays

The structure of the arrays, and the logic it follows, is discussed in great detail in our first menu column.

Reproduced below are the arrays used in the working examples on this page. Open the menus and compare their content to the array elements.

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

Remember: The final array element is not followed by a comma!
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
)

Now, for some more new stuff in the main external script.


Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

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

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