Dynamically hide/show menu item (as css display:none/block)

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jeanvm
Beginner
Beginner
Posts: 3
Joined: Wed Mar 22, 2006 7:18 pm

Dynamically hide/show menu item (as css display:none/block)

Post by jeanvm »

Hi

I try to find a way to dynamically mask or show a menu Item (not open/close).

I have a table in my page in which lines are clickable, and menu items may have to be shown or hide according to the clicked line.
I already use the "mm_changeItemProperty" to set the "type" property (34) to "disabled" (greyed), which works perfectly.

Is there a simple and quick way to do this ?

Thanx
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

There's a menueditapi.js module that allows you to add/delete/edit items.

There's a demo or tool for it. I don't really understand it, but maybe you will.

http://milonic.com/menueditapi.php

The module is here

http://milonic.com/menumodules.php

Ruth
Post Reply