Click to go to the home page.

This Document
"Menu item highlight" vector image

See Also
"Menu Verb" behavior
"Menu item highlight" vector image

 

Site Nav

css drop down menu by Css3Menu.com

"Menu item highlight" behavior

"Menu item highlight" behavior

Go to table of contents for this doc. What it does

This behavior works in tandem with the "Menu item highlight vector" image and the "Menu Verb" behavior to highlight menu items. To see it in action, mouseover the Site Nav menu to the left.

You only need this behavior if you want to highlight menu items concerning a static menu. Dynamic menus create a "menu item highlight vector" sprite and attach the "menu item highlight" behavior to it.

When you configure the "Menu Verb" behavior to highlight a menu item and the user mouses into that menu item, the "Menu Verb" behavior positions the "Menu item highlight vector" image over or under the menu item, depending on how you have configured the "Menu Verb" behavior.

It does so as long as you have attached the "Menu item highlight" behavior to the "Menu item highlight" vector image and it's instantiated when the call is made from "Menu Verb".

This behavior sets the regPoint at the top left of the "Menu item highlight" vector image so the "Menu Verb" behavior can move the vector image around according to its logic.

The "blend" property, which controls transparency of the "Menu item highlight" vector, is set halfway between invisible and opaque by this behavior.

The ink is set to 36, which is "background transparent".

You can adjust these settings in the script if you like, but I have found these settings useful.

You are more likely to want to change the color of the "Menu item highlight" vector image. See documentation on the "Menu item highlight" vector image to see how to do that.

Go to table of contents for this doc. What to attach it to

Attach a copy of the "Menu item highlight" behavior to the "Menu item highlight" vector image. This is a must if you want to highlight menu items.
 

Click to go to the home page"Menu item highlight" behavior