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

Disabled menu item display in firefox


Poster: cgoodwin
Dated: Friday February 8 2008 - 4:36:29 GMT

Hi,
I have an issue displaying disabled menu items in firefox. The disabled menu items do not gray out like they do in IE. The menu items function correctly in that they are disabled and can be controlled via js, but the display remains the same in firefox.
I'm using (Version 5.742 - Built: Wednesday January 25 2006 - 9:17)

Any help would be greatly appreciated..

attached is my menu-data.js

Thanks,
Chris.


Code:
fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=10;
_subOffsetLeft=-10;


with(submenuStyle=new mm_style()){
fontfamily="Verdana, Tahoma, Arial";
fontsize="11px";
fontstyle="normal";
fontweight="normal";
itemwidth=185;
offcolor="#215DC6";
oncolor="#428EFF";
ondecoration="underline";
padding=6;
separatorcolor="#969698";
subimagepadding=8;
}

with(menuStyle=new mm_style()){
styleid=1;
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
onborder="1px dashed #000000";
fontfamily="Verdana, Tahoma, Arial";
fontsize="11px";
fontstyle="normal";
fontweight="normal";
imagepadding=4;
itemwidth="100%";

offbgcolor="transparent";
offcolor="#000000";
onbgcolor="#C1D2EE";
onborder="1px solid #316AC5";
oncolor="#000000";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#999999, Direction=135, Strength=3)";

ondecoration="underline";
padding=5;
subimage="img/arrow.gif";
subimagepadding=10;
}

with(milonic=new menuname("LeftMainMenu")){
alwaysvisible=1;
left=0;
orientation="vertical";
style=menuStyle;
top=0;
aI("bgimage=img/xp_panel_topoff2.gif;fontsize=11px;fontweight=bold;image=img/transparent.gif;imagewidth=22;itemheight=30;offcolor=#ffffff;rawcss=padding-top:7px;status=Back To Home Page;text=Main Menu;");
aI("image=img/transparent.gif;offbgcolor=#EFF3FF;type=header;text=;imageheight=1;");
aI("image=img/note1.gif;text=View File;url=javascript:menuGetClientFile();type=disabled;offbgcolor=#EFF3FF;");
aI("image=img/blank.gif;offbgcolor=#EFF3FF;text=;disabled=true;");
aI("image=img/new16x16.gif;offbgcolor=#EFF3FF;url=javascript:menuAddStep();type=disabled;text=Add Step;");
aI("image=img/undo16x16.gif;offbgcolor=#EFF3FF;url=javascript:menuResetLastStep();type=disabled;text=Reset Last Step;");
aI("image=img/blank.gif;offbgcolor=#EFF3FF;text=;disabled=true;");
aI("image=img/new16x16.gif;offbgcolor=#EFF3FF;url=javascript:menuAddTaskNote();type=disabled;text=Add Task Note;");
aI("image=img/editNote16x16.gif;offbgcolor=#EFF3FF;url=javascript:menuEditTaskNote();type=disabled;text=Edit Task Note;");
aI("image=img/trash16x16.png;offbgcolor=#EFF3FF;url=javascript:menuDeleteTaskNote();type=disabled;text=Delete Task Note;");
aI("image=img/blank.gif;offbgcolor=#EFF3FF;text=;disabled=true;");
aI("image=img/delete3.gif;offbgcolor=#EFF3FF;url=javascript:menuClose();text=Close;");
}

drawMenus();

Re: Disabled menu item display in firefox


Poster: Ruth
Dated: Friday February 8 2008 - 5:23:55 GMT

Hi,

I'm sorry, but we are unable to do any support for anything but the newest version. That version is 2 years old and we wouldn't have any idea what it had as to properties, or what bugs have been fixed or anything. If you're using the Change Item property from the demos area http://support.milonic.com/demos/change ... /index.htm, there is actually one that has the use of type=disabled; here http://support.milonic.com/demos/change ... e_item.htm

I notice that in IE when you click on the Disable Item it works in IE, but not in FF even in the new version. Well, it works in that nothing happens when you click the item after it is disabled, but the oncolor does still change in FF. That can be fixed by adding another mm_changeItemProperty("main menu", "Back", 6, "#whatever the offcolor is should be put here", 1); Once that is added to this function, then even though the text won't 'gray out', when you mouseover it nothing happens, the pointer doesn't change, the bgcolor doesn't change and the font color doesn't change. That's all i can suggest. If you're not using that function, then you need to update the menu [though that won't change the issue in FF] and then contact Milonic about it.

Ruth