Menu Behavior
So we've looked at the functions needed to draw the menus. That's great, but that's only part of the story. Now that the menus are drawn, we have to create the functions needed for the menus to actually appear. Here's a list of all the methods that we've attached to the HM_CurrentMenu object:
HM_CurrentMenu.showIt = HM_f_ShowIt
HM_CurrentMenu.keepInWindow = HM_f_KeepInWindow;
HM_CurrentMenu.onmouseover = HM_f_MenuOver;
HM_CurrentMenu.onmouseout = HM_f_MenuOut;
HM_CurrentMenu.hideTree = HM_f_HideTree
HM_CurrentMenu.hideParents = HM_f_HideParents;
HM_CurrentMenu.hideChildren = HM_f_HideChildren;
HM_CurrentMenu.hideTop = HM_f_HideTop;
HM_CurrentMenu.hideSelf = HM_f_HideSelf;
HM_CurrentMenu.setMenuStyle = HM_f_SetMenuStyle;
if(HM_IE) HM_CurrentMenu.onselectstart ...
Get Advanced JavaScript™: Insights and Innovative Techniques now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.