|
home / documentation / reference / linkid
LinkID
- Description:
- The id of the link that should popup this menu when rolled
over or clicked.
- Value:
- String, null, or JavaScript expression that returns a string/null.
LinkID must be equal to the id assigned to a link on the
HTML page (a standard in-page link outside of HierMenus).
- Applies To:
- Menus.
- Browser Compatibility:
- LinkID is not supported in Netscape 4.x.
- Comments:
- LinkID is a shortcut property allowing you to assign the
standard HM_f_PopUp and HM_f_PopDown syntax to the onmouseover
and onmouseout handlers of a link you specify for this menu automatically. When
LinkID is set, you do not need to assign the HM_f_PopUp and
HM_f_PopDown attributes to the links that you want to spawn menus;
nor do you need to include the dummy-function declaration script in the head
of your documents. See the setup instructions for
further details.
Using LinkID will not, in all browsers, properly save the existing
onmouseout, onmouseover, and onclick settings for the links
you specify. If you need to apply your own behaviors to these attributes for the
links, you should not use LinkID. You should also not use LinkID
where Netscape 4.x compatibility is required, since Netscape 4.x will ignore the
LinkID setting. Finally, LinkID will most likely not work as you
expect in alternate cross frame implementations. Specifically, HierMenus will
search the content page of the frameset for the link in question, and
not the navigation pages. To activate the pop up menus from links in the navigation
pages in alternate cross frame implementations, you must use the literal
onmouseover / onmouseout / onclick syntax. LinkID will work
as expected in standard cross frame implementations.
For LinkID to work properly, it is assumed that the id you specify
matches the id of a link within your HTML page. I.E., if you specify a
LinkID for a menu of ProdLink, then somewhere on your page you
should have a standard link definition that looks something like this:
<a href='myPage.html' id='ProdLink' ... >
LinkID is case sensitive.
- Examples:
// Ok:
LinkID:"ProdLink",
LinkID:window.linkPrefix+"products",
// concatenate the user defined variable linkPrefix
// with "products" to arrive at the LinkID
// Incorrect:
LinkID:ProdLink, // quotes required
LinkID:'window.linkPrefix+"products"',
// no quoted expressions
- Default:
- null
- See Also:
|