|
home / documentation / reference / scrollinterval
ScrollInterval
- Description:
- The time delay in milliseconds in which scrolling menus are moved.
Smaller numbers=faster scrolling.
- Value:
- Integer, or JavaScript expression that returns an integer.
Negative values are not allowed. Values outside the range 10-1000 are
not recommended.
- Applies To:
- Menus.
- Browser Compatibility:
- ScrollInterval is supported in all browsers.
- Comments:
- Scrolling menus in Macintosh Netscape 7 tend to jump immediately
to the top or bottom, instead of scrolling smoothly. By conditionally setting
this parameter, you can slow down the scroll speed for this browser, allowing
it to respond similarly to other browsers (see example below).
- Examples:
// Ok:
HM_MacN7=(HM_Mac&&
(HM_UserAgent.indexOf('Netscape/7')!=-1))
?true:false;
...
ScrollInterval:500, // half a second
ScrollInterval:10, // hundredth of a second
ScrollInterval:(HM_MacN7)?100:20,
// 100 if Mac N7, 20 othewise
// Incorrect:
ScrollInterval:.5,
ScrollInterval:-300,
ScrollInterval:"200", // quotes not allowed
ScrollInterval:"(HM_MacN7)?100:20", // no quoted expressions
- Default:
- 20
- See Also:
-
ScrollEnabled,
ScrollOver,
ScrollBarHeight,
ScrollBarColor,
ScrollImgAltTop,
ScrollImgSrcTop,
ScrollImgAltBot,
ScrollImgSrcBot,
ScrollImgWidth,
ScrollImgHeight,
ScrollBothBars,
ScrollHeightMin
|