Content in the Javascript library assumes a sound understanding of ECMAScript, CSS, XHTML and DOM.
Hover over each line to read tips.
function mbSet(m, c)Transforms <ul>elements into an application styles menu bar with popup sub-menus.
<ul> to transform into a menu bar.function mbHA()Hides all open menus on the page. This function is not 'per menubar' specific, as there should never be more than one menubar being accessed at any given moment.
function mbHAT()Calls mbHA() after a timeout of mbW milliseconds.
This is triggered by an onblur or onmouseout
event, and cancelled by a subsequent onfocus or onmouseover
event. One of the tricks of UI programming ÃÆ’¢Ãƒ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…¡Ã‚¬ÃƒÆ’‚¦ detecting when the menu
has lost focus by tracking the individual components.
There are doubtless more elegant solutions, but this serves well.
function mbTC()Clears timeout set by mbHAT().
function mbS(m)Shows a menu / submenu. Also toggles display of HTML elements which interfere with positioned menus.
<ul> menu element to show.function mbH(m)Hide a menu / submenu.
<ul> menu element to hide.function mbSH(m,v)Toggle between show/hide a menu.
<ul> menu element to toggle.hidden or visible.
Also used as a classname on the parent node's <a ÃÆ’¢Ãƒ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…¡Ã‚¬ÃƒÆ’‚¦> tag.function mbHE(v)Some HTML elements conflict with the display of positioned elements. This functions finds all elements by tag name and toggles their visibility.
hidden or visible.function mbHEV(v,e)Some HTML elements conflict with the display of positioned elements. This functions hides these elements whenever the menu is visible. It’s not a great solution, but it prevents them from obscuring menu items. Logically this is a CSS problem, but I have not yet found a CSS solution.
hidden or visible.
Also used as a classname on the parent node's <a ÃÆ’¢Ãƒ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…¡Ã‚¬ÃƒÆ’‚¦> tag.