I was hoping to attempt to get the milonic menu to work more like the Windows menus (File>Edit>View>etc...) where you click on one once and then all open onMouseOver.
I have tried creating a custom function that is called when clicking an element in the main menu.
This does work...
XPMainStyle.openonclick = "false"; -> (set to true at first in the Milonic with(XPMainStyle=new mm_style()))
However even once switched the menu's still need to be clicked to open...
I am refrencing the variable correctly as I can alert its original state first and then again after I set it to false.
Any help would be greatly appreciated. Maybe someone has already found a work around for it.
Thanks again,
J.P.
openonclick once, then all menus open on mouseover?
My 2 cents...
To expand on Andy's suggestion... The behavior you want is a built-in capability of the menu. You won't need to add any custom functionality.
Use retainClickValue (a global property) in conjunction with the openonclick property (either as a style property or an item property, depending on your preference).
See this post for more.
Cheers,
Kevin
To expand on Andy's suggestion... The behavior you want is a built-in capability of the menu. You won't need to add any custom functionality.
Use retainClickValue (a global property) in conjunction with the openonclick property (either as a style property or an item property, depending on your preference).
See this post for more.
Cheers,
Kevin
Same problem, but not working
I've implemented the same value as described here:
and put it at the very top of my menu_data.js. However, my menu is still opening on rollover. I even tried using the onclick value found in another thread and it still has no effect.
What am I missing?
My site is here: http://www.familywebwatch.com. I want the "Categories" link to open when a user click's on it and have the submenus open on rollover. If I understand correctly, this behavior should be solved by using the retainClickValue.
Code: Select all
retainClickValue = true;
What am I missing?
My site is here: http://www.familywebwatch.com. I want the "Categories" link to open when a user click's on it and have the submenus open on rollover. If I understand correctly, this behavior should be solved by using the retainClickValue.
Hi Eragon,
You forgot to tell the 1st level submenu to open on click. The default, if you don't specify openonclick is to open on mouseover.
Ruth
You forgot to tell the 1st level submenu to open on click. The default, if you don't specify openonclick is to open on mouseover.
Code: Select all
aI("text=Categories;showmenu=Categories;align=center;itemwidth=80;status=Categories;openonclick=1;");