How to hide the sub menu after clicking?

Post your questions and problem reports here.

How to hide the sub menu after clicking?

Postby AlexZ » Wed Oct 12, 2011 9:34 am

Hi!

can you help me?

How to do that would be after clicking Sub-menu hidden? Without refresh page.
AlexZ
 
Posts: 5
Joined: Wed Oct 12, 2011 9:30 am

Re: How to hide the sub menu after clicking?

Postby Aivars » Wed Oct 12, 2011 12:39 pm

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

Re: How to hide the sub menu after clicking?

Postby AlexZ » Wed Oct 12, 2011 12:58 pm

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

Re: How to hide the sub menu after clicking?

Postby Aivars » Wed Oct 12, 2011 1:15 pm

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

Re: How to hide the sub menu after clicking?

Postby AlexZ » Wed Oct 12, 2011 1:42 pm

thanks, I will wait for the update
AlexZ
 
Posts: 5
Joined: Wed Oct 12, 2011 9:30 am

Re: How to hide the sub menu after clicking?

Postby Aivars » Thu Oct 13, 2011 12:27 pm

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

Re: How to hide the sub menu after clicking?

Postby AlexZ » Mon Oct 17, 2011 8:21 am

Ok,
Tnx.

It well works!
AlexZ
 
Posts: 5
Joined: Wed Oct 12, 2011 9:30 am


Return to Easy Button & Menu Maker Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron