Is it possible to make the menu disapear?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
darkcircuituk
Super Advanced
Super Advanced
Posts: 49
Joined: Sat Aug 21, 2004 2:57 pm

Is it possible to make the menu disapear?

Post by darkcircuituk »

Is it possible to make the right click context menu disapear when you either left click on a menu option or you left click off the menu? If so, could you please let me know how?

Thanks

Dave
darkcircuituk
Super Advanced
Super Advanced
Posts: 49
Joined: Sat Aug 21, 2004 2:57 pm

Let me amend that

Post by darkcircuituk »

I did a search on your forum for the keywords close on click and I found an answer to part of my question, so let me rephrase my question.

I wish for the right click context menu to close when a user clicks on one of the menu options. Is this possible?

Thanks

Dave
darkcircuituk
Super Advanced
Super Advanced
Posts: 49
Joined: Sat Aug 21, 2004 2:57 pm

Follow up

Post by darkcircuituk »

Me again, if its not possible to do the above, could you tell me plz

Dave
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: Let me amend that

Post by kevin3442 »

Hi Dave,
darkcircuituk wrote:...I wish for the right click context menu to close when a user clicks on one of the menu options. Is this possible?
Try adding clickfunction=closeAllMenus(); to the aI() string of each item. Like so:

Code: Select all

aI("text=Whatever;url=whatever;clickfunction=closeAllMenus();");
That should cause all currently opened Milonic Menus on that page to close when the item is clicked; menus that have alwaysvisible=1; -- like main menus -- are exempt (they won't close).

If that doesn't work, we can try a more direct approach.

Cheers,

Kevin
darkcircuituk
Super Advanced
Super Advanced
Posts: 49
Joined: Sat Aug 21, 2004 2:57 pm

Post by darkcircuituk »

Yet again guys, thats great,
Post Reply