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:54
border issues with IE
Poster: TSAMandy
Dated: Tuesday February 8 2005 - 0:18:29 GMT
I just upgraded to the latest (yes, *latest*) version, and suddenly menu and menu item borders, as defined in CSS classes and applied to divs, are being clobbered or ignored entirely in IE 6.0.29. Has anybody else noticed this? In Firefox it works the same as it always has. I would just put the border properties in style defs, but because of the multiple varieties of menus I'm using, it's a lot easier to use CSS.
Poster: TSAMandy
Dated: Tuesday February 8 2005 - 0:31:19 GMT
FYI, I've tracked down the behavior change to between the two pre-release versions built Friday January 28 2005 - 17:26 and Tuesday February 1 2005 - 7:26. If there were more in between, I was unaware of them, so I can't narrow it down any further.
Thanks for any help!
Poster: Ruth
Dated: Tuesday February 8 2005 - 0:52:51 GMT
Hi,
Could you give us a page to check, please.
Ruth
Poster: TSAMandy
Dated: Tuesday February 8 2005 - 16:37:10 GMT
Actually, I found the tiny little bits of code that are causing the problem: the change from
Code:
>> if(_MS[65]){
_brdsty="solid";
if(_MS[64])_brdsty=_MS[64];
_brdcol=_MS.offcolor;
if(_MS[63])_brdcol=_MS[63];
>> if(_MS[65])_brdwid=_MS[65];
_brdP=_brdwid+"px "+_brdsty+$$;
_brd="border:"+_brdP+_brdcol+";"
}
_brdsty="solid";
if(_MS[64])_brdsty=_MS[64];
_brdcol=_MS.offcolor;
if(_MS[63])_brdcol=_MS[63];
>> if(_MS[65])_brdwid=_MS[65];
_brdP=_brdwid+"px "+_brdsty+$$;
_brd="border:"+_brdP+_brdcol+";"
}
to
Code:
>> if(_MS[65]||_MS[65]==0){
_brdsty="solid";
if(_MS[64])_brdsty=_MS[64];
_brdcol=_MS.offcolor;
if(_MS[63])_brdcol=_MS[63];
>> if(_MS[65]||_MS[65]==0)_brdwid=_MS[65];
_brdP=_brdwid+"px "+_brdsty+$$;
_brd="border:"+_brdP+_brdcol+";"
}
_brdsty="solid";
if(_MS[64])_brdsty=_MS[64];
_brdcol=_MS.offcolor;
if(_MS[63])_brdcol=_MS[63];
>> if(_MS[65]||_MS[65]==0)_brdwid=_MS[65];
_brdP=_brdwid+"px "+_brdsty+$$;
_brd="border:"+_brdP+_brdcol+";"
}
in mmenudom.js is the culprit. I'm sure those changes were made for a reason, but I never saw any problem without them, and now I am seeing a problem, because there are two places where (what ends up being) _MS[65] gets set to 0 if it isn't set. In other words, if I set a border width in a CSS style and don't set the "borderwidth" property of a menu style, a border with width 0 is added to the style attribute, which clobbers the CSS-defined border.
Any thoughts?
Poster: Ruth
Dated: Tuesday February 8 2005 - 18:43:01 GMT
Hi,
I'm sorry, I don't do programs so I can't look at something and say x is the solution.
TSAMandy wrote:
suddenly menu and menu item borders, as defined in CSS classes and applied to divs, are being clobbered or ignored entirely
Are you saying the menu is causing a problem with your page css messing up your page div borders or a problem with the css on/off class applied in the menu?
Ruth
Poster: TSAMandy
Dated: Tuesday February 8 2005 - 19:30:27 GMT
It's just overriding the definitions of the onclass and offclass CSS styles. Sorry I wasn't clear on that.
Poster: John
Dated: Wednesday February 9 2005 - 14:22:12 GMT
We really need a URL to see what's happening, as Ruth politely requested. Internal menu code is something we, as volunteers, can do nothing about.
You also mentioned "latest" version. Version numbers tell the story - "latest" means nothing, especially at the rate updates have been coming out lately.