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://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;");
}
Hiding a sub menu item
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
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