menu location in netscape not in the same place as in IE

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
User avatar
Wag
Advanced
Advanced
Posts: 28
Joined: Wed Oct 31, 2007 4:07 pm

menu location in netscape not in the same place as in IE

Post by Wag »

Menu location in netscape not in the same place as in IE, anyone know if theres a way to overcome this?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: menu location in netscape not in the same place as in IE

Post by Ruth »

Hi,

We have to have a url to see the page and test it.

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: menu location in netscape not in the same place as in IE

Post by John »

Couple problems, at least.

You've got some syntax problems in this statement...

Code: Select all

<body bgcolor="#000000" background="sideflames.jpg" 
text="#000000"  link="#F63E00" vlink="#F63E00" alink="#F63E00" 
bgProperties="fixed" onLoad="MM_preloadImages('../
Buttons_r5_c1_f2.gif')"');" onUnload=
"leave )" "MM_preloadImages 'Buttons_r1_c1_f2.gif',
'Buttons_r3_c1_f2.gif','Buttons_r5_c1_f2.gif','
Buttons_r7_c1_f2.gif','Buttons_r9_c1_f2.gif','
Buttons_r11_c1_f2.gif','Buttons_r13_c1_f2.gif','
Buttons_r15_c1_f2.gif>
Some of your " and ' are missing/out of place.

As for the menu, you have placed it in a table cell incorrectly. See
http://milonic.com/tablemenu.php for instructions.
John
User avatar
Wag
Advanced
Advanced
Posts: 28
Joined: Wed Oct 31, 2007 4:07 pm

Re: menu location in netscape not in the same place as in IE

Post by Wag »

John
Thanks for your reply.
First on that button code you commented about, I believe that was generated by Fireworks. Could have some things missing but I don't know, that part works fine in Netscape and IE.
I now have moved the menu script out of the table and up right underneath the button code.
saved it local and tried it in Netscape, still doesn't work so I don't think it was the table.
User avatar
Wag
Advanced
Advanced
Posts: 28
Joined: Wed Oct 31, 2007 4:07 pm

Re: menu location in netscape not in the same place as in IE

Post by Wag »

new testing url:
http://webpages.charter.net/wag1/mainwithintable.htm
still the same in netscape
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: menu location in netscape not in the same place as in IE

Post by John »

Ah, but at least now I am seeing the 2 menus in Firefox. Before there was nothing there at all!

Now I can dig into it a little more.

Progress... :roll:
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: menu location in netscape not in the same place as in IE

Post by John »

OK, here's a quick and dirty for now - http://www.west.asu.edu/sa/testsite/index.htm.

Numerous changes were made to all 3 files (index and the 2 _data.js files). Lots of syntax problems, invalid code, etc. I think I got the menus in the location you wanted. However, there is a slight difference between IE and FF. Ruth can help you with that. Unfortunately I still have a J.O.B., and for some strange reason they expect me to work at it. :cry:

On a side note, in your _data.js files you are calling the arrow,gif file directly from the Milonic site. This is a definite no-no. That file is included in your download, so please call it from your own site.

Feel free to take the files from my server and look them over while waiting for Ruth.

Ruth, please let me know when you have them so I can take them down.
John
User avatar
Wag
Advanced
Advanced
Posts: 28
Joined: Wed Oct 31, 2007 4:07 pm

Re: menu location in netscape not in the same place as in IE

Post by Wag »

John
You keep mentioning Firefox, does FF react the same as Netscape or something, I've never used Firefox and according to my site stats nobody else that visits does either. Anyway, just a reminder that my issue is in Netscape.
I appreciate what your doing but now it works for me in Netscape but not in IE. Go figure, just my luck. :D
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: menu location in netscape not in the same place as in IE

Post by John »

Firefox is a Mozilla product (same as Netscape). AFAIK, nobody is actually using Netscape any more. Some logs may report Firefox as Netscape.

As for IE, the link I posted should work in IE as well (it does for me in IE7), but with slightly different positioning for the menus.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: menu location in netscape not in the same place as in IE

Post by Ruth »

Hi,

Thanks, John, for all the work. I'll work on the difference in IE and FF and see if I can find anything.

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: menu location in netscape not in the same place as in IE

Post by John »

No prob, Ruth.

Note that I had to change all his graphic links to absolute so they would show up (just a reminder).
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: menu location in netscape not in the same place as in IE

Post by Ruth »

Hi,

Using John's setup, the only thing I see that is different is where the submenus open from the 1st menu. That is a result of the align='middle' coding. If you want them to look the same in IE and FF I think you need to set it as vAlign="top" I don't think align takes a middle code, isn't it left, right, center and then vAlign= top middle bottom?

Ruth
User avatar
Wag
Advanced
Advanced
Posts: 28
Joined: Wed Oct 31, 2007 4:07 pm

Re: menu location in netscape not in the same place as in IE

Post by Wag »

Hi Ruth
Well heres where I'm at now, it works in both broswers when I use John's link from above.
http://www.west.asu.edu/sa/testsite/index.htm
When that is open, I save the the webpage complete to a folder on my drive.
I open it from there and get nothing, no menu in either browser.

Here is his script:
<SCRIPT src="milonic_src.js"
type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/mmenudom.js><\/scr"+"ipt>");
</SCRIPT>

Shouldn't this be there also?
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="menu_data_new.js" type=text/javascript></SCRIPT>

Also, am I thinking right to think that the way the files (milonic_src.js) etc. are called that these files should be in the same folder as the html.

I guess I'm getting confussed now :cry:
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: menu location in netscape not in the same place as in IE

Post by Ruth »

Hi,

When I work on the desktop I put everything in the same folder since I don't have anything like apache or those others that act like a web server. Then when I know they are correct, I change the paths to be what they are supposed to be on the web and upload the files to their respective folders.

Don't use the milonic_src.js and other files you downloaded since those are licensed to ASU. Just put your own milonic, mmenuns4 and mmenudom. js files in the folder, and make sure you eliminate that / from in front of the mmenudom, mmenuns4 files on the page you downloaded.

Ruth
User avatar
Wag
Advanced
Advanced
Posts: 28
Joined: Wed Oct 31, 2007 4:07 pm

Re: menu location in netscape not in the same place as in IE

Post by Wag »

Ruth
Thanks, I got that done and the menu now shows in both IE and Netscape. It is at least close to where it's supposed to be in Netscape.

Since this is the whole script now and it doesn't call the menu_data.js and the menu_data_new.js anymore, how do I control the style settings now?

<SCRIPT src="milonic_src.js"
type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</SCRIPT>
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: menu location in netscape not in the same place as in IE

Post by Ruth »

Hi,

I don't know what you mean. How can you get the menus if you don't call the data files? Please post a page that you have done and is working so I can see what you mean

Ruth
User avatar
Wag
Advanced
Advanced
Posts: 28
Joined: Wed Oct 31, 2007 4:07 pm

Re: menu location in netscape not in the same place as in IE

Post by Wag »

Ruth
Thats what I thought. John put the data file scripts in other places within the html code and I didn't catch on right away.
Sorry about that :oops:
I was used to seeing the whole script together like this:
<SCRIPT src="milonic_src.js"
type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/mmenudom.js><\/scr"+"ipt>");
</SCRIPT>

<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="menu_data_new.js" type=text/javascript></SCRIPT>

I really appreciate this help, many thanks to both you and John. :D
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: menu location in netscape not in the same place as in IE

Post by John »

Wag -
Wag wrote:Thats what I thought. John put the data file scripts in other places within the html code and I didn't catch on right away.
Sorry about that :oops:
Which is exactly why, way back up towards the top of this thread, I pointed you to http://milonic.com/tablemenu.php, and mentioned that you weren't using the correct method for putting the menu in a table cell. :roll:
Wag wrote:<SCRIPT src="milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/mmenudom.js><\/scr"+"ipt>");
</SCRIPT>
That's actually the old call method, and I forgot to change it in the code, so 1 :oops: for you and 1 :oops: for me! The 'new' calls look like this...

Code: Select all

<script type="text/javascript" src="milonic_src.js"></script>
<noscript><a href="https://milonic.com/">JavaScript DHTML Menu Powered by Milonic</a></noscript>
<script type="text/javascript" src="mmenudom.js"></script>
For menus in a table cell, the calls to the _data.js file(s) still get placed as I had them.

Note also that the above call structure no longer supports NS4. If you feel you have to support that old beast, simply add the call to the ns4 module using the above syntax.
John
User avatar
Wag
Advanced
Advanced
Posts: 28
Joined: Wed Oct 31, 2007 4:07 pm

Re: menu location in netscape not in the same place as in IE

Post by Wag »

Which is exactly why, way back up towards the top of this thread, I pointed you to http://milonic.com/tablemenu.php, and mentioned that you weren't using the correct method for putting the menu in a table cell.
As soon as I read the table help, I did away with the table. I thought I needed the table for placement at first but later realized I didn't.

Thanks again for all your help!
Post Reply