menu is very slow in responding

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
wetclay
Advanced
Advanced
Posts: 11
Joined: Tue Jan 11, 2005 3:09 am

menu is very slow in responding

Post by wetclay »

i placed the menu in a cell, but now it is very slow in responding. any ideas??

also there is an extra line in that cell for some reason. could someone tell me what to remove, I couldn't find what to remove in FP.

thanks

here's the link:http://www.wetclaywebdesign.com/calvary ... /index.htm
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: menu is very slow in responding

Post by kevin3442 »

wetclay wrote:i placed the menu in a cell, but now it is very slow in responding. any ideas??
I don't really notice a slow response. The menu on your test page seems normally responsive to me; menus open up immediately. Don't know why it would be slow on your end. (What browser/os are you using?) Some possible issues may be that the table containing your main menu is nested inside of other tables (more than two levels of nesting as far as I could tell with a quick glance at your code). Placing the menu in nested tables may or may not be an issue, I don't know for sure. Also, the table containing the menu is inside of a div, which appears to be nested inside of another div. I do know that placing the menu(s) in divs can cause problems.

What's probably even more of an issue is that you're loading the base menu source files (milonic_src.js, mmenudom.js, mmenuns4.js), as well as your menu_data.js file, inside of a table cell that's also in nested tables, that are also inside of a div. That's going to cause problems, especially for some browsers (some older ones will choke for sure). Those files should not be loaded in divs or tables. Load the source .js file outside of any other container (e.g., load them right after the <body> tag). Refer to this example and to this one for discussions on embedding a menu in a table cell.
...also there is an extra line in that cell for some reason. could someone tell me what to remove, I couldn't find what to remove in FP.
That's an easier one! The <td> where you've embedded the script for your Main Menu has a non-breaking space in it, just before the menu code (the &nbsp; code on line 124, between the <td> and <script> tags). Getting rid of that &nbsp; should get rid of the extra white space above the menu.

Hope that helps,

Kevin
wetclay
Advanced
Advanced
Posts: 11
Joined: Tue Jan 11, 2005 3:09 am

Post by wetclay »

hey kevin,

wow, thanks for all your suggestions. I'm really horrible at html and actually had to look up what a DIV command does. :(

I've removed the div on the menu page and it seems to be working faster on my end. I'm using MSIE ver 6.0xxxxx

I also got rid of the extra line too. thanks again.

there is still the issue of this goofy break in the seperator bars between the main menu items. here is a screen shot of what i'm talking about if you can't see it.
Image

this occurs in both firefox and MSIE 6.0xxxx
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I can see the problem in Firefox on Mac, but not in Safari.

Try removing menuheight=17; from the main menu. You might also want to specify your font as px rather than pt - much more cross-browser friendly.
John
wetclay
Advanced
Advanced
Posts: 11
Joined: Tue Jan 11, 2005 3:09 am

Post by wetclay »

nope, those suggestions didn't fix it. any other ideas??
Post Reply