Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:11

Hide/show menu items


Poster: Pedrod
Dated: Wednesday September 8 2004 - 9:48:29 BST

hi, is there any way that i can hide or show specific menu items? so far, i've tried setting the raw CSS of a menu item to "visibility:hidden;" and then when i want to show it i set the rawcss to "". The only problem is, I think by changing the rawcss, I'm changing the style for the menu item's <A> tag, and not it's parent <DIV> - there is still a 1px line that can be clicked.
The code I'm using to "hide" all the menu items is:

Code:
         function mm_hideMenuItems(menuName)
         {
            var Menunum = getMenuByName(menuName);
            var objmenu = _m[Menunum]
            for (i=0;i<objmenu[0].length;i++)
               {
                  _mi[objmenu[0][i]][78] = "display:none;visibility:hidden;height:0px;";
                  
               }            
         }


Any ideas?


Poster: kevin3442
Dated: Wednesday September 8 2004 - 19:09:14 BST

Hi Pedro,

Is your goal to still show the cell that the item occupied, but just not show the item (kind of like a disabled menu item), or do you want to completely remove the item from the menu?

Kevin


Poster: Pedrod
Dated: Wednesday September 8 2004 - 19:22:44 BST

I want remove it.