|
home / documentation / reference / scrollpositiondelay
ScrollPositionDelay
- Description:
- The interval, in milliseconds, that the browser should wait between
adjustments to a RepositionOnScroll menu that is being moved as a result
of a page scroll. Smaller numbers mean that the "follow" effect on RepositionOnScroll
menus will happen faster (i.e., the menu itself will slide into its new position
faster).
- Value:
- Integer, or JavaScript expression that returns an integer.
Negative values are not allowed.
- Applies To:
- Menus.
- Browser Compatibility:
- ScrollPositionDelay is not supported in Netscape
6.0x (which does not support RepositionOnScroll menus at all).
- Comments:
- You must always specify ScrollPositionDelay as an integer, or a
JavaScript expression that returns an integer. Do not use quoted strings or
non-numerical characters when defining ScrollPositionDelay.
In general, we recommend settings in the range of 30 (fastest) to
150 (slowest). The speed with which the menus redraw is highly
dependent on the user's browser and CPU speed; if the speed is set too fast the
user may not see any "follow" effect at all; and too slow will be annoying.
- Examples:
// Ok:
ScrollPositionDelay:50, // twentieth of a second
ScrollPositionDelay:100, // tenth of a second
ScrollPositionDelay:(HM_IE)?100:50,
// 100 if IE, 50 otherwise
// Incorrect:
ScrollPositionDelay:.5,
ScrollPositionDelay:-30,
ScrollPositionDelay:"20", // quotes not allowed
ScrollPositionDelay:"(HM_NS4)?100:50",
// no quoted expressions
- Default:
- 80
- See Also:
-
IsFixed,
RepositionOnScroll,
RepositionInterval
|