value if menu is display

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Snaker
Beginner
Beginner
Posts: 1
Joined: Sun Jul 29, 2007 11:18 pm

value if menu is display

Post by Snaker »

hi

I need a value which say my that the Menu is opened at the moment or not.

Because i build a left ckick menu and i use "popup(contextMenu,1)" to oben the menu (display). If click the menu open but if i click again (in the menu) the menu open again. Now I need a value to see if the menu is open or not. if the menu is open the manu do not have to open again.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: value if menu is display

Post by Andy »

Hi,

The best way is to determine the visibility value of the menu container.

Something like this should do the trick:

Code: Select all

gmobj("menu"+getMenuByName("contextMenu")).style.visibility)
This should contain either "visible" or "hidden" depending on its status

HTH,
Andy
Post Reply