Hiermenus Go Forth, I - DHTML Lab | 3 | WebReference

Hiermenus Go Forth, I - DHTML Lab | 3

Logo

Hiermenus Go Forth, I:
Version 4 - The External Arrays



Element 7 - border_color

Description
Sets the border color of all menus in a menu tree. All menus in the cascade (top-level and children) are affected.

Value
Hexadecimal color values or color name.
IE-only: CSS decimal RGB color value or user-defined system color.
May be specified as:
  • string

Example Values
string: "#0011DD"
    All menu borders will display in the color defined by #0011DD
string: "saddlebrown"
    All menu borders will display in saddle brown.

Default
If omitted, the border color of all menus in the menu tree will comply with the color set by the in-page Global Parameter Variables.

Differences from Version 3 equivalent
No difference from Version 3.

Comments
If you are writing for an IE-only environment, for example, a corporate intranet, you can also use:
  • CSS decimal RGB color values in the form: rgb(red green blue)
    Ex. "rgb(0 202 19)"
  • user-defined system color values. See Column 24 for a complete list of these values.
    Ex. "threeddarkshadow"

Element 8 - separator_color

Description
Sets the color of the horizontal separating line between menu items. All menus in the cascade (top-level and children) are affected.

This parameter will be applied by Internet Explorer only! Navigator will ignore it and render the separator line in the same color as the menu border.

This behavior has been adopted to lessen the load on Navigator rendering, given that no CSS is used in the Navigator version of HM. All elements are Navigator-friendly layers.

Value
Hexadecimal color values, color name, CSS decimal RGB color value or user-defined system color.
May be specified as:
  • string

Example Values
string: "#ABCDEF"
    All menu separator lines will display in the color defined by #ABCDEF
string: "turquoise"
    All menu separator lines will display in turquoise.
string: "rgb(223 123 23)"
    All menu separator lines will display in the color defined by rgb(223 123 23).
string: "threedhighlight"
    All menu separator lines will display in the threedhighlight user-defined system color.

Default
If omitted, the separator line color of all menus in the menu tree will comply with the color set by the in-page Global Parameter Variables.

Differences from Version 3 equivalent
No difference from Version 3.


Time to stop, for now. We have looked at the first nine elements in the Tree-Specific Overhead Parameters array, which, in Version 4, is the first element in every top-level menu array.

As mentioned, there are seventeen Tree-Specific Overhead Parameters in total. The first nine, which we have discussed, are based on the first nine elements in the Version 3 top-level menu arrays. They are identical, except for the non-color-related parameters, which can now be declared as JS expressions.

In our next column, we will look at the remaining eight Tree-Specific Overhead Parameters. These are:

 9 top_is_permanent,
10 top_is_horizontal,
11 tree_is_horizontal,
12 position_under,
13 top_more_images_visible,
14 tree_more_images_visible,
15 evaluate_upon_tree_show,
16 evaluate_upon_tree_hide

They are all new to Version 4, and promise to add more flexibility and power to our script.

Until then, on our final page, we have included an Array-Conversion tool to help you convert your existing Version 3 arrays to the new standard.

Produced by Peter Belesis and

All Rights Reserved. Legal Notices.
Created: Aug 08, 2000
Revised: Aug 08, 2000

URL: https://www.webreference.com/dhtml/column35/11.html