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 / samples / buttons

Buttons

The area inside a menu item (i.e., within the ItemPadding) is called the menu item button. Beginning with HierMenus version 6, you can apply styling to this area by assigning it a ButtonClass. The button class you assign should refer to a class that you have defined in your style sheet elsewhere on the page.

Main Menu 1

The most common use for button classes will be to apply borders to individual menu items: Either swapping border styles when the item is rolled over to create a push button effect, as in the above example menu; or using a simple 1 pixel border that is initially hidden (that is, a solid style border set to the same color as the menu item's background color) and appears only on rollover, as in the example below.

Main Menu 2Button styling relies entirely on style sheet based class name settings; individual HM parameters are available to set the on, off, and selected class names for each button.

Remember that neither Netscape 4.x nor Internet Explorer 4.x support button class assignments in HM. How to properly deal with this and many other class-specific issues is dealt with in our mini-tutorial Using Classes, which should be considered required reading for anyone who wants to use class name assignments in their menu configurations.

In addition to the two main examples presented here, there is also a third, less obvious example menu that demonstrates the use of buttons. Our main navigation menus that popup from the links on the upper left side of the page also use button effects when the menu items are rolled over.

For further information, check out the reference entries for these configuration parameters:

ButtonClass
ButtonClassOver
ButtonClassSelected
Using Classes Mini-Tutorial

Click the link below to have a look at the configuration file we used to generate these sample menus:

buttons.js



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/samples/buttons.html