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:44

Hiding a sub menu item


Poster: shong
Dated: Monday May 9 2005 - 23:05:04 BST

Is there a way to hide a sub menu item? I just want to hide one item inside a sub menu.

I want to hide the item that is in bold. I tried text=; but that caused my tabbing to not work.

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=10;
aI("status=Back To Home Page;text=Home;url=http://www.milonic.com/;");
aI("showmenu=Samples;text=Menu Samples;");
aI("showmenu=Milonic;text=Milonic;");
aI("showmenu=Partners;text=Partners;");
aI("showmenu=Links;text=Links;");
aI("showmenu=MyMilonic;text=My Milonic;");
}


Poster: Ruth
Dated: Tuesday May 10 2005 - 18:31:18 BST

You need to read the information about the Milonic Link and about removing the Milonic link

Ruth


Poster: shong
Dated: Tuesday May 10 2005 - 20:48:14 BST

Hi Ruth,
Our company has purchased the menu. I just used that code snipet as an example.


Poster: kevin3442
Dated: Tuesday May 10 2005 - 23:20:48 BST

I think we'll need more to go on. It's probably do-able, but the best way to do it will depend on some details.

For example, I can think of a way to sort of leave the item defined in the menu item array, but mask it out so that it doesn't show at all (essentially hiding it). But would you want to put it back in? You can also programatically remove an item from a menu, or leave it visible but disabled (changing the appearance somewhat to indicate that it's disabled... sort of "grayed out"). Do you want to do this conditionally? Will you need to repeatedly hide then show the item on the same page, without reloading the page, or just once per page?

Cheers,

Kevin


Poster: shong
Dated: Wednesday May 11 2005 - 15:25:00 BST

For now I just want to hide the item. However it would be good to know how to hide it based on a condition.