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:53
Browser Compatibility
Poster: aaronz
Dated: Wednesday February 16 2005 - 17:16:06 GMT
Well, I'm back again... I'm having some nasty problems with Netscape 4.7 and Netscape 6.x ... they wreak havoc on our menu... is this typical? I thought milonic handled both of those well...
http://www.input.com/_milonic57
See the link above for testing purposes... Does anyone else have problems like these?
Poster: Ruth
Dated: Thursday February 17 2005 - 2:15:40 GMT
I think you worked with Kevin developing what you needed to do the menu like you have it. Kevin is out of the country, just so you know. I don't know that anyone else would be able to figure out what's going on, well at least I can't since I can't experiment, not knowing anything about all that coding. One thing I noticed is you have 5.7 not 5.712 on the site, at least that's what gets downloaded.
I can get the submenu position to duplicate what happens in NN6 on the desktop, but not what happens to the resources. I guess it has to be on the web for that to happen. I don't know if this will do anything at all, but I notice you have a table in a table cell for that resources, and you have the td coded as align="right" try putting that into the table you have the rescources in <table etc, etc, align="right"> Other than that, I'm just too downlevel in knowledge to do anything else. Sorry.
Ruth
Poster: Andy
Dated: Thursday February 17 2005 - 11:46:38 GMT
Hi,
I've just fixed the problem with Netscape 6 so the latest release should help sort that out.
Unfortunately, your use of CSS will never work with Netscape 4. The problem is due to the way Netscape 4 handles CSS - Or rather doesn't handle CSS. Do you really need to support that browser? If so, you may need to rethink your use of offclass and onclass. Most of what you are doing can be achieved by using the menu's built-in properties.
One thing I do see is that you have issues with "PADDING-RIGHT: 2px; PADDING-LEFT: 6px;" for the .SUB_OFF and .SUB_ON classes. The menu needs to know these parameters but unfortunately, the very nature of JavaScript means that it cannot easily access CSS properties. This means that width problems will occur on Mozilla based browsers.
I really do wish that you could use CSS in the way that you are trying, but unfortunately we are all restricted by the way the older browsers work. The newer browsers are getting better we are still not quite there yet.
Hope this helps
Andy
Poster: Ruth
Dated: Thursday February 17 2005 - 19:01:22 GMT
I have a code Kevin wrote, I've not tried it on the updates, it was written a long time ago, back around version 5.24 or something so I'm not sure it will still work. I also used css classes on my menu which of course meant it had problems in netscape 4x. Kevin wrote a call for the menus so that I could call a menu_data file I made without classes if the browser being used was Netscape 4x. This was the only one of all the codes we tried to get it to call a different file for netscape that worked.
Code:
<script language=JavaScript src="milonic_src.js" type="text/javascript"></script>
<script language=JavaScript type="text/javascript">
if (ns4) {
_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
_d.write("<scr"+"ipt language=JavaScript src=menu_data_ns4.js><\/scr"+"ipt>");
drawMenus();
}
else {
_d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
_d.write("<scr"+"ipt language=JavaScript src=main.js><\/scr"+"ipt>");
}
<script language=JavaScript type="text/javascript">
if (ns4) {
_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
_d.write("<scr"+"ipt language=JavaScript src=menu_data_ns4.js><\/scr"+"ipt>");
drawMenus();
}
else {
_d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
_d.write("<scr"+"ipt language=JavaScript src=main.js><\/scr"+"ipt>");
}
As I said, I've not tested it on the updated versions, since I wouldn't know what to change to make it work if it didn't.
Ruth