We are providing HierMenus to you at no cost. HierMenus code requires a confirmed membership with internet.com. Please register by clicking here and come back soon to download your free copy of HeirMenus code.
Click Here to Register

Site Navigation
Bulletins
About
Documentation
FAQ
Samples
Known Issues
Technology Jobs

internet.commerce

Partner With Us














          
internet.com

IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 
HierMenusCentral Enhance the Functionality of Your Web Site with DHTML HierMenus.
    

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

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Created: 3/25/2004
Updated: 3/25/2004
URL: http://www.hiermenuscentral.com/documentation/reference/scrollpositiondelay.html