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
Web Hosting Directory
Online Education
Best Price
Compare Prices
Prepaid Phone Card
Calling Cards
Free Business Cards
Online Education
Baby Photo Contest
Corporate Gifts
KVM over IP
Promotional Items
Computer Deals
Phone Cards

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

ButtonClassSelected

Description:
The CSS class name that should be applied to this menu item button when its child menu appears (or if it is specifically marked IsSelected).

Value:
String, "", or JavaScript expression that returns a string/"". ButtonClassSelected should match an existing class name in a user-defined CSS style sheet elsewhere on the HTML page.

Applies To:
Menu Items.

Browser Compatibility:
ButtonClassSelected is not supported in Netscape 4.x or Internet Explorer 4.x.

Comments:
ButtonClassSelected, along with the menu, item, and other button specific class name configuration parameters, allows you to supply basic stylings for your menus (such as font families and sizes, and background/foreground color schemes) via CSS style sheets external to HierMenus. To use ButtonClassSelected, you must first define a class in your style sheets. You can then apply that class name to your menu items using the ButtonClassSelected configuration parameter.

Defining style sheet classes is well beyond the scope of HierMenus documentation. For further information pertaining to style sheet rules and available parameters, we refer you to the W3C's Style Sheet section.

Most dimensioning parameters, including width and height, should not be included in your CSS button class definition. If you use these, the results will generally be undesirable (or they will just be ignored by HierMenus). Unlike the ItemClass and MenuClass settings, however, you may utilize border and padding widths in your button classes. It is, however, strongly recommended that your ButtonClass, ButtonClassOver, and ButtonClassSelected definitions all share the same dimensioning, such as font sizes, border, and padding widths. HierMenus does not resize menus when class names are swapped on menu items; if the individual over and selected states of the menu item are of differing dimensions the menu items may appear distorted when they are rolled over.

Special care must be taken when using classes with HierMenus to ensure that HM's own configuration parameters, which are considered to be more specific than class name assignments, do not override your style sheet settings. For further details view the Using Classes mini-tutorial.

ButtonClassSelected is assigned to the menu item button when its child menu appears, i.e., when the menu item button is intended to be displayed in a "selected" state. ButtonClassSelected will also be applied to parent menu item buttons when the user rolls over a child menu if the parent menu item's KeepHilite configuration parameter is set to true. Finally, if the menu item's IsSelected configuration parameter is set to true, then the menu item button will always appear as if it is in its "selected" state.

ButtonClassSelected is case sensitive.

Examples:
// Ok:
ButtonClassSelected:"hm_buttonselect",
ButtonClassSelected:"",    // remove over class for this item
ButtonClassSelected:(window.useClasses)?"hm_buttonselect":"",
   // if the user defined variable "useClasses" is
   // true, use the classname hm_buttonselect

// Incorrect:
ButtonClassSelected:hm_buttonselect,    // quotes required
ButtonClassSelected:'(window.useClasses)?"hm_buttonselect":""',
   // no quoted expressions
Default:
""

See Also:
MenuClass, ItemClass, ItemClassOver, ItemClassSelected, ButtonClass, ButtonClassOver, Using Classes Mini-Tutorial



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

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
Created: 3/25/2004
Updated: 3/25/2004
URL: http://www.hiermenuscentral.com/documentation/reference/buttonclassselected.html