Hiermenus Go Forth, III - DHTML Lab | 7
Hiermenus Go Forth, III:
Version 4 - The External Arrays - Menu and Item Parameters
Element 5 - item_has_child
- Description
- Specifies the existence of a child menu associated with the item. The child menu appears when the user mouses over the item. Depending on the values of top_more_images_visible and tree_more_images_visible, a "more" image may be included in the item.
- Value
- Boolean
May be specified as:- true Boolean (true / false)
- integer Boolean (1 / 0)
- string JS expression to be evaluated
- Example Values
- true Boolean: true
- The item has an associated child menu.
- The item does not have a child menu.
integer Boolean: 1- The item has an associated child menu.
- The item does not have a child menu.
JS expression (function call): "getChildMenu()"- A custom function that you have created is called. The return value of this function will be assigned to the item_has_child parameter.
- A child menu will be created and appear only if Explorer is being used.
The menu has two items with child menus (the first two.) The menu arrays looks like this:
HM_Array1 = [ [...], ["DHTML DYNOMAT","https://www.webref.com/dhtml/dynomat/",1,0,1], ["DHTML DINER","https://www.webref.com/dhtml/diner/",1,0,1], ["HIERMENUS","https://www.webref.com/dhtml/hiermenus/",1,0,0], ["ABOUT","https://www.webref.com/dhtml/about.html",1,0,0], ["LINKS","https://www.webref.com/dhtml/links.html",1,0,0], ["WEB APPS","https://www.webref.com/dhtml/webapps/",1,0,0] ] HM_Array1_1 = [ [], ["Dialogs","https://www.webref.com/dhtml/dynomat/dialogs/",1,0,0], ["Fader","https://www.webref.com/dhtml/dynomat/fader/",1,0,0], ["HM3","https://www.webref.com/dhtml/dynomat/hiermenus3/",1,0,0] ] HM_Array1_2 = [ [], ["NS Resize","https://www.webref.com/dhtml/diner/resize/",1,0,0], ["Tooltips","https://www.webref.com/dhtml/diner/titletog/",1,0,0], ["IE Page Coords","https://www.webref.com/dhtml/diner/realpos/",1,0,0], ["Frame Resize","https://www.webref.com/dhtml/diner/frresize/",1,0,0], ["Browser Vars","https://www.webref.com/dhtml/diner/browsvars/",1,0,0] ]
- Default
- false.
If omitted, it is assumed that the item has no associated child menu. - Differences from Version 3 equivalent
- There is no difference from the Version 3 equivalent.
This concludes our look at the new Version 4 menu-creating arrays.
As before, on our final page, we have included an Array-Conversion tool to help you convert your existing Version 3 arrays to the new standard.
In our next installment, we will look at the new expanded Global Parameters that affect the look and behavior of all menu trees in a page.
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.Created: Oct 03, 2000
Revised: Oct 03, 2000
URL: https://www.webreference.com/dhtml/column38/7.html