Please Note:
HierMenus is protected by copyright laws. Use of the HierMenus code requires a paid licensing agreement.
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
International

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 / isvariablewidth

IsVariableWidth

Description:
Boolean value indicating whether the menu should be fixed or variable width.

Value:
Boolean (true or false), Integer (1=true, 0=false), or JavaScript expression that returns a boolean value.

Applies To:
Menus.

Browser Compatibility:
IsVariableWidth is supported in all browsers.

Comments:
Variable width menus are automatically resized to be as wide as the content of their menu items. If the menu is horizontal (IsHorizontal is true) then each item is individually resized to the width of its content. If the menu is vertical, the menu is sized to the width of its widest menu item.

When a menu is variable width, its MenuWidth setting becomes the maximum width of the menu. Additionally, supplying a VariableWidthMinimum prevents HierMenus from shrinking any menu item in a variable width menu to less than a minimum pixel size. If VariableWidthMinimum is larger than MenuWidth, MenuWidth will take precendence.

Examples:
// Ok:
IsVariableWidth:true,
IsVariableWidth:0,
IsVariableWidth:(window.thisPage=="cf")?1:0, 
    // if the user defined variable "thisPage" is "cf", 
    // IsVariableWidth is true

// Incorrect:
IsVariableWidth:"false",  // quotes not allowed around booleans
IsVariableWidth:"0",
IsVariableWidth:'(window.thisPage=="cf")?1:0', // no quoted expressions
Default:
true

See Also:
MenuWidth, VariableWidthMinimum



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

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