spacer
Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / dhtml / column38
Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

Logo

Hiermenus Go Forth, III:
Version 4 - The External Arrays - Menu and Item Parameters


Element 3 - item_is_rollover

Description
Causes the item to change font and/or background colors upon user mouseover.
Value
Boolean
May be specified as:
Example Values
true Boolean: true
true Boolean: false

integer Boolean: 1
integer Boolean: 0

JS expression (function call): "getRolloverBehavior()"
JS expression (complete statement): "(IE4) ? true : false"

 

The menu to the left has an item (the third one) excluded from rollover behavior. The menu array looks like this:

HM_Array5 = [
[...],
["Doc JavaScript","http://www.webref.com/js/",1,...],
["HTML with Style","http://www.webref.com/html/",1,...],
["DHTML Lab",,0,...],
["Xploring XML","http://www.webref.com/xml/",1,...],
["3-D Anim Workshop","http://www.webref.com/xml/",1,...]
]

The menu to the left has an item (the third one) excluded from rollover behavior. The item display text contains HTML to create emphasis. The menu array looks like this:

HM_Array6 = [
[...],
["Doc JavaScript","http://www.webref.com/js/",1,...],
["HTML with Style","http://www.webref.com/html/",1,...],
["<B>DHTML Lab</B>",,0,...],
["Xploring XML","http://www.webref.com/xml/",1,...],
["3-D Anim Workshop","http://www.webref.com/xml/",1,...]
]

The menu to the left has an item (the third one) excluded from rollover behavior. All items have child menus. The child menus each contain only one item, which has no rollover behavior. We have created descriptive pop-ups. The menu arrays looks like this:

HM_Array7 = [
[...],
["Doc JavaScript","http://www.webref.com/js/",1,0,1],
["HTML with Style","http://www.webref.com/html/",1,0,1],
["DHTML Lab",,0,0,1],
["Xploring XML","http://www.webref.com/xml/",1,0,1],
["3-D Anim Workshop","http://www.webref.com/xml/",1,0,1]
]

HM_Array7_1 = [
[],
["Everything you always wanted to know about JavaScript by our resident experts, Yehuda and Tomer Shiran",,0,0,0]
]

HM_Array7_2 = [
[],
["Everything you always wanted to know about HTML and CSS by our resident expert, Stephanos Piperoglou",,0,0,0]
]

HM_Array7_3 = [
[],
["Everything you always wanted to know about DHTML by our resident expert, Me",,0,0,0]
]

HM_Array7_4 = [
[],
["Everything you always wanted to know about XML by our resident expert, Michael Classen",,0,0,0]
]

HM_Array7_5 = [
[],
["Everything you always wanted to know about 3-D Animation by our resident expert, Robert Polevoi",,0,0,0]
]


DHTML Lab


The text link, above, causes a top-level menu to appear upon mouseover. The menu has only one item without rollover. We have created a pop-up tool-tip! The menu arrays looks like this:

HM_Array8 = [
[...],
["Everything you always wanted to know about DHTML by our resident expert, Me",,0,0,0]
]

Default
true.
If omitted, the item will change font and/or background color upon mouseover.

Differences from Version 3 equivalent
There is no Version 3 equivalent. All items had rollover behavior.

Comments
This parameter is especially useful when you have an item that you want to exclude from the rollover, possibly because it usually links to the page the user is on, and in creating tooltips or description pop-ups, as in the examples above. Combine it with item_permanently_highlighted, discussed on the next page, to create menu headings.

On the next page, we'll discover how to keep an item in a permanent rollover state.


Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

All Rights Reserved. Legal Notices.
Created: Oct 03, 2000
Revised: Oct 03, 2000

URL: http://www.webreference.com/dhtml/column38/5.html