|
home / documentation / reference / isfixed
IsFixed
- Description:
- Boolean value indicating whether or not the menu should be
set to a fixed on screen position.
- Value:
- Boolean (true or false), Integer (1=true, 0=false),
or JavaScript expression that returns a boolean value.
- Applies To:
- Menus.
- Browser Compatibility:
- IsFixed is supported only in Gecko
browsers (Mozilla 1.0+, Netscape 6.1+) and Safari.
- Comments:
- IsFixed menus behave, in concept, similar to
RepositionOnScroll menus in that they remain in the users browser
window when the user scrolls the Web page. With IsFixed menus,
however, there is no residual movement of the menus when the page is scrolled;
the menu simply remains planted at its default position as the page is
scrolled.
IsFixed is only supported in a small number of browsers. If you
mark an individual menu as both IsFixed and RepositionOnScroll
then HierMenus will use IsFixed in those browsers that support it and
RepositionOnScroll for those that do not. Note that setting
ScrollPositionDelay to 0 will not emulate the
IsFixed behavior in those browsers that do not support it.
- Examples:
// Ok:
IsFixed:true,
IsFixed:0,
IsFixed:(window.thisPage=="cf")?1:0,
// if the user defined variable
// "thisPage" is "cf", IsFixed
// is true
// Incorrect:
IsFixed:"false", // quotes not allowed around booleans
IsFixed:"0",
IsFixed:'(window.thisPage=="cf")?1:0',
// no quoted expressions
- Default:
- false
- See Also:
-
RepositionOnScroll,
ScrollPositionDelay,
RepositionInterval,
Menu Positioning Mini-Tutorial
|