How to hide the sub menu after clicking?

Post your questions and problem reports here.
Post Reply
AlexZ
Posts: 5
Joined: Wed Oct 12, 2011 9:30 am

How to hide the sub menu after clicking?

Post by AlexZ »

Hi!

can you help me?

How to do that would be after clicking Sub-menu hidden? Without refresh page.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: How to hide the sub menu after clicking?

Post 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.
Blumentals Software Programmer
AlexZ
Posts: 5
Joined: Wed Oct 12, 2011 9:30 am

Re: How to hide the sub menu after clicking?

Post 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
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: How to hide the sub menu after clicking?

Post 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.
Blumentals Software Programmer
AlexZ
Posts: 5
Joined: Wed Oct 12, 2011 9:30 am

Re: How to hide the sub menu after clicking?

Post by AlexZ »

thanks, I will wait for the update
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: How to hide the sub menu after clicking?

Post 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.
Blumentals Software Programmer
AlexZ
Posts: 5
Joined: Wed Oct 12, 2011 9:30 am

Re: How to hide the sub menu after clicking?

Post by AlexZ »

Ok,
Tnx.

It well works!
Post Reply