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;";
}
}
{
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?