HierMenus CENTRAL: HierMenus In Progress. HierMenus 5.0 Release Notes (3/7)
HierMenus 5.0: Frame Enabling Parameters
For cross-frames implementations, several additional parameters must be set to let the HierMenus script know that additional frames-specfic logic should be utilized. These parameters turn on the frames-specific logic, specify the frameset configuration, and identify the name of the content frame.
- Tells HM whether to utilize cross-frames logic. Used in conjunction with HM_GL/PG_FramesMainFrameName and HM_GL/PG_FramesNavFramePos
- Boolean (true/false,1/0) or any expression that evaluates to a true/false value.
- If false, menus will be built and displayed in the same page that called the HM_Loader.js. If true, menus are built and displayed in the named frame indicated in HM_GL/PG_FramesMainFrameName.
- Cross frame logic is enabled:
HM_GL_FramesEnabled = true;Cross-frames logic is disabled:
HM_GL_FramesEnabled = 0;Cross-frames logic is enabled if a custom user-variable exists on the page:
HM_GL_FramesEnabled = (window.someVariable) ? 1 : 0;
- Tells HM the name of the content frame in which the menus should be displayed.
- String, or JS expression which returns a string value.
- When setting up your frameset for use with HM, you must include a name attribute in the frame tag that will contain the pages over which the actual menus will be displayed. See Further Frames Setup Instructions on the next page for further information.
Note that this name is case-sensitive.
- The content frame is named "main":
HM_GL_FramesMainFrameName = "main";The content frame is named "FooBar":
HM_GL_FramesMainFrameName = "FooBar";
- Indicates where the navigation frame is in relation to the content frame.
- One of "top", "left", "bottom", or "right", or any JS expression that returns one of those four values.
- This parameter allows HM to know how to position sub-menus within the content frame. I.E., if set to "top", then as menus are popped up they will be placed at the top of the page immediately beneath the navigation bar. If "left", then the menus appear on the left of the content page, etc.
Note that some browsers do not account for the content frame's scrollbars when reporting the dimensions of the frame itself, thus when using the "right" or "bottom" settings the menus may not be flush with the actual edge of the content area.
- The navigation frame is above the content frame:
HM_GL_FramesNavFramePos = "top";
The navigation frame is to the left of the content frame:
HM_GL_FramesNavFramePos = "left";
The navigation frame is below the content frame:
HM_GL_FramesNavFramePos = "bottom";
The navigation frame is to the right of the content frame:
HM_GL_FramesNavFramePos = "right";
- None. This parameter must be set when cross-frames menus are enabled.
On the next page, some further instructions and limitations for frames-based implementations.
Created: April 22, 2003
Revised: April 24, 2003