Page 1 of 1

How to hide the sub menu after clicking?

PostPosted: Wed Oct 12, 2011 9:34 am
by AlexZ
Hi!

can you help me?

How to do that would be after clicking Sub-menu hidden? Without refresh page.

Re: How to hide the sub menu after clicking?

PostPosted: Wed Oct 12, 2011 12:39 pm
by Aivars
Can you give more details, what exactly are you trying to do? Normally clicking menu item opens the link that is assigned to this item. Making menu item that doesn't open any link but just hides the menu kind of defeats the purpose of the menu and will confuse the site visitors.

Re: How to hide the sub menu after clicking?

PostPosted: Wed Oct 12, 2011 12:58 pm
by AlexZ
for an example please see the website:

http://pc-net.ru/new/

open menu after clicking tempered by opening the web-site content

Russian lang only, sorry.

tnx

Re: How to hide the sub menu after clicking?

PostPosted: Wed Oct 12, 2011 1:15 pm
by Aivars
Ok, I see, you're using Javascript. There's no single function in EBMM js file for hiding the open menus but I'll try to add one in the next update, probably next week.

Re: How to hide the sub menu after clicking?

PostPosted: Wed Oct 12, 2011 1:42 pm
by AlexZ
thanks, I will wait for the update

Re: How to hide the sub menu after clicking?

PostPosted: Thu Oct 13, 2011 12:27 pm
by Aivars
You can define and use this function:

Code: Select all
function ebmHideSubmenus() {
   if (cbnOpenTopMenu)
      ebmRemoveSubmenu(cbnOpenTopMenu.id);
}


It will be built in the next version but you can copy/paste it to your JavaScript file if you don't want to wait.

Re: How to hide the sub menu after clicking?

PostPosted: Mon Oct 17, 2011 8:21 am
by AlexZ
Ok,
Tnx.

It well works!