Hiermenus Go Forth, II - DHTML Lab | 7
Hiermenus Go Forth, II:
Version 4 - The External Arrays - New Menu Tree Parameters
Element 12 - position_under
- Description
- Causes the first child menu in a menu tree, with a permanent horizontal top-level menu, to be positioned directly under its parent item.
The menu above is a horizontal permanently positioned top-level menu. The first child menu appears directly below the item that causes it to be displayed. - 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
- First child menu appears below its parent item.
- First child menu overlaps its parent item like all child menus.
integer Boolean: 1- First child menu appears below its parent item.
- First child menu overlaps its parent item like all child menus.
JS expression (function call): "setPositionUnder()"- A custom function that you have created is called. The return value of this function will be assigned to the position_under parameter.
- The first child menu will display directly under the parent item that called it if the user is using IE. (This is not a very good example, but I could not think of a case where one would need a conditional for this parameter. In any case, the ability to use JavaScript statements is included. I'm sure someone will think of a useful scenario. )
- Default
- false.
If omitted, the first child menu will overlap its parent item based on values set in the Global Parameter Variables.
The Version 4 Global Parameter Variables have not yet been discussed, but they follow the same logic as the Version 3 in-page Global Parameter Variables. - Differences from Version 3 equivalent
- There is no Version 3 equivalent. All first child menus items were positioned according to values set in the Global Parameter Variables.
- Comments
- This parameter is useful only if HM is used to create a horizontal toolbar, with precisely positioned first child menus, as in the example above.
It will only work if both top_is_permanent and top_is_horizontal are set to true.
If these prerequisites are not fulfilled, position_under is ignored.
The next parameter is useful for permanent toolbars, as well.
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.Created: Sept 05, 2000
Revised: Sept 05, 2000
URL: https://www.webreference.com/dhtml/column36/5.html