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

home / experts / dhtml / column38
Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management
Logo

Hiermenus Go Forth, III:
Version 4 - The External Arrays - Menu and Item Parameters


Item Parameters

In Version 3 every menu item was defined by three consecutive array elements:

item_display_text,  item_link_url,  item_has_child

Version four defines its menu items with a nested array, containing five elements. More elements may be added in the future, depending on the direction the HM script takes:

[ item_display_text, item_link_url,
  item_is_rollover,  item_permanently_highlighted,
  item_has_child ]

Let's discuss them one at a time.


Element 0 - item_display_text

Description
The text displayed in the menu item

Value
Text String
May be specified as:
Example Values
string:
"Browser Help"

JS expression:
NS4 ? "Navigator Help" : "Explorer Help"


The menu above has item display text created by these array parameters:

HM_Array3 = [
[...],
["Browser Help",...],                               // simple string
[NS4 ? "Navigator Help" : "Explorer Help",...],     // JS expression
[,...],                                             // no value
["<IMG SRC='ie.gif' ALIGN=ABSMIDDLE> IE stuff",...] // simple HTML
]
Default
none.
If parameter is omitted, no text will be displayed

Differences from Version 3 equivalent
There is no difference from the Version 3 equivalent.

Comments
This parameter can contain simple HTML, like the FONT and IMG tags for display embellishment.

Next, linking from the menu items..


Produced by Peter Belesis and

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

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

webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags

All Rights Reserved. Legal Notices.
Created: Oct 03, 2000
Revised: Oct 03, 2000

URL: http://www.webreference.com/dhtml/column38/3.html