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

BorderColor

Description:
The default color for a menu's borders.

Value:
String, "", or JavaScript expression that returns a string/"".

Applies To:
Menus.

Browser Compatibility:
BorderColor is supported in all browsers, though not all browsers may recognize all possible CSS values (especially Netscape 4.x). Additionally, be careful with "system specific" colors such as threedhighlight which may cause errors in browsers that don't support them.

Comments:
BorderColor should be applied as a string, which means the value you supply should always be in quotes. Allowed values for BorderColor are the same as those allowed in the standard CSS border-color property (see the W3C Specs) and in fact, the value you supply is transferred as is to the JavaScript borderColor property for the menu.

For those browsers that support them, you may also use system specific colors such as threedhighlight or menu. Note, however, that not all platforms recognize such colors; and in fact some platforms will report errors when attempting to use them. Be sure to test system colors extensively before deploying them, and note that you may be able to exclude system colors for a specific browser or platform using conditional parameter assignments. See the DHTML Lab article Accessing the User-Defined System Colors, Part I for further information on system colors.

Do not confuse borders with separators. In HierMenus jargon, borders surround each menu itself, while separators are the bars between individual menu items.

Examples:
// Ok:
BorderColor:"blue",
BorderColor:"#99CCFF",    // #rrggbb
BorderColor:"",           // use style sheet default
BorderColor:(HM_IE)?"menu":"black",
      // menu if IE, black otherwise

// Incorrect:
BorderColor:"greatgreen",  // must be valid color identifier
BorderColor:red,           // quotes required
BorderColor:"FFCC99",      // use leading pound (#) with rgb
BorderColor:'(HM_IE)?"menu":"black"', // no quoted expressions
Default:
"red"

See Also:
SeparatorColor



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/bordercolor.html