Closing A Submenu On Click
Open one of the submenus in the following menu. Notice that the submenu does not close on mouse out. Now, click anywhere on the page and the submenu should close.
Here is how to accomplish that. In Global Settings - General set the value for "Hide all submenus since mouse out..." as large as possible. Next, select the first menu item, go to Menu Item Settings - Condition, and enter the following code in the Prefix window:
function stcls()
{
var m;
for(var j=0;j<st_ms.length;j++)
{
m=st_ms[j];
for(var i=0;i<m.ps.length;i++)m.ps[i].lock=0;
sthdPX(m.ps[0],1);
}
}
document.onclick=stcls;