|
home / documentation / reference / scrollbothbars
ScrollBothBars
- Description:
- Boolean value indicating whether both menu scroll bars (top and bottom)
should be displayed at all times. If false, the top scroll bar is hidden when
the scrolling menu reaches its top, and the bottom scrollbar is hidden when
the scrolling menu reaches its bottom.
- Value:
- Boolean (true or false), Integer (1=true, 0=false),
or JavaScript expression that returns a boolean value.
- Applies To:
- Menus.
- Browser Compatibility:
- ScrollBothBars is supported in all browsers.
- Comments:
- By default, HierMenus will display the top scroll bar for a menu
only if the menu is not already scrolled to its absolute top and the bottom
scroll bar only when the menu is not at its absolute bottom. This means that,
as the menu is scrolling, the scrollbar that the mouse is activating may suddenly
disappear, leaving the mouse down over a valid menu item. In some browsers, this
action may be interpreted as clicking the actual menu item.
ScrollBothBars can be set to true to counteract this behavior.
With ScrollBothBars set to true, both menu scrollbars are displayed
at all times.
- Examples:
// Ok:
ScrollBothBars:true,
ScrollBothBars:0,
ScrollBothBars:(window.thisPage=="cf")?1:0,
// if the user defined variable "thisPage" is "cf",
// ScrollBothBars is true
// Incorrect:
ScrollBothBars:"false", // quotes not allowed around booleans
ScrollBothBars:"0",
ScrollBothBars:'(window.thisPage=="cf")?1:0',
// no quoted expressions
- Default:
- false
- See Also:
-
ScrollEnabled,
ScrollOver,
ScrollInterval,
ScrollBarHeight,
ScrollBarColor,
ScrollImgAltTop,
ScrollImgSrcTop,
ScrollImgAltBot,
ScrollImgSrcBot,
ScrollImgWidth,
ScrollImgHeight,
ScrollHeightMin
|