- Create Account

pMenu.over()

Forums > Cascading Popup Menus: Feedback > pMenu.over()
Author
Message

1) Arie Molendijk Group: Guests
IP: 84.86.--.--
Perhaps this is a stupid observation (I'm new here), but I noticed that in Cascading Popup Menus relative to an anchor , you can force the menus to hide with 'pMenu.over()'. For instance: onmouseover=pMenu.over().
Does that help anyone?

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.173.--.--
Yes, internally most of the script logic is within the over() function, and calling it without a menu name will hide most other menus (as whenever you mouseover a menu, it hides all non-related ones).

- Angus.

3) Arie Molendijk Group: Guests
IP: 129.125.--.--
This means that you can construct, for instance, vertical 'first level menus' that consist of anchors and non-anchors (normal links) at the same time. A normal non-anchor link on the page may then separate two anchors and instantly hide their submenus (=the submenus related to the anchors) onmouseover, whatever the delay specified for hiding submenus. Something like:

<a name="possibilities"  id="possibilities" href="#" onmouseover="pMenu.over('root', 1)" onmouseout="pMenu.out('root', 1)">Anchor 1</a><br>

<a onclick=window.location.href="http://www.twinhelix.com" onmouseout=pMenu.over()>A link that instantly hides all submenus</a><br>

<a name="impossibilities"  id="impossibilities" href="#" onmouseover="pMenu.over('root', 2)" onmouseout="pMenu.out('root', 2)">Anchor 2</a><br>

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.