Menu disappearing on page it refers to

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dturner_uk
Beginner
Beginner
Posts: 5
Joined: Sat Nov 24, 2007 5:49 pm

Menu disappearing on page it refers to

Post by dturner_uk »

Hi - I am new to Milonic and have checked the FAQs but can't seem to find an answer to this one. It's probably something simple and I'm sure it's something I'm doing wrong, but I would appreciate any help.

My problem is this; I have a horizontal menu but when you choose one of the menu items and go to the relevant page, the heading for that menu item disappears. IE:

Main menu reads: Menu 1 Menu 2 Menu 3 Menu 4 Menu 5

Click on "Menu 2" - takes you to menu2.htm . . . BUT the menu now has a red "x" where Menu 2 used to appear on the menu. I imagine it's something to do with referencing the actual page you are currently on.

Does this sound familiar to anyone?

I am still uploading the pages and tweaking as I go along but you can get an idea of what I mean by starting at http://www.nostalgiacentral.com/1950s.htm

Watch what happens to the menus if you choose any of the other menu headings.

If it helps, you can read the content of my menu_data.js file at http://www.nostalgiacentral.com/milonic.htm (It's very long! - sorry)

Many thanks in advance for your help

David T
dturner_uk
Beginner
Beginner
Posts: 5
Joined: Sat Nov 24, 2007 5:49 pm

Re: Menu disappearing on page it refers to

Post by dturner_uk »

BTW - I don't know if this provides a clue, but if you click on the "Top" link at the bottom of any of the problem pages and then hit F5 to refresh, the "missing" menu comes back again.

Off to tear my hair out now . . .

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

Re: Menu disappearing on page it refers to

Post by John »

First, you are way down-level. You're running v5.754, current is v5.786. The most current version is required for help here in the forum.

Let us know here when you're up to level and we'll go from there.
John
dturner_uk
Beginner
Beginner
Posts: 5
Joined: Sat Nov 24, 2007 5:49 pm

Re: Menu disappearing on page it refers to

Post by dturner_uk »

Hi John

Many thanks for your reply. I have now performed the upgrade to the lastest version but the problem is still there.

One other quick thing, since I have upgraded the width of the menu bar has grown and now extends off my pages to the right. I'm not sure which parameter to edit to fix this.

Thanks in advance for your help. I'm sure it's something stupid I've done.

Best wishes
David T
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Menu disappearing on page it refers to

Post by Ruth »

Hi,

All I get is service unavailable when I click the link and I need the page to be able to see what's going on.

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

Re: Menu disappearing on page it refers to

Post by John »

Ruth, I started working on it here, but don't have time to finish right now.

I fixed numerous HTML errors. The menu had at least 2 problems...

1. The background blue was extending all the way to the right side of the window. Fixed.

2. Clicking on a main menu item, e.g., The 1970s, overlays the background with the same color as the text. I think it's just a pagematch/color problem.

Also noticed some of the submenus called with showmenu= do not display. This is because they are not defined!

Sorry I can't finish it right now, David. Something about a J.O.B.!
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Menu disappearing on page it refers to

Post by Ruth »

Hi,

John is correct. The problem is the pagebgcolor and pagecolor. They are both defined as #eeeeee, so when you reach the 1950s page it highlights and turns the background to grey and the text to the same color.

I noticed that you are placing the menu absolutely using top and left, but given your layout I would suggest you put it in the table cell, that way no matter what the visitor's resolution the menu will always be in that same cell positioned below your top part. To do it, add buildAfterLoad=true; at the top of your data file, and then call the menu files in that table cell. I'm not sure why you have so many nested tables in that one cell, but this is what I set up so you can try it that way and see what you think.

Code: Select all

<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 height=36 
      cellSpacing=0 cellPadding=2 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width="100%" height=28>
            <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 
            height=46 cellSpacing=0 cellPadding=0 width="100%" bgColor=#3178ae 
            border=0>
              <TBODY>
              <TR>
                <TD width="100%" 
        height=35><SCRIPT type="text/javascript" src="menu/milonic_src.js"></SCRIPT> 
<noscript>
<a href="https://milonic.com/">DHTML Menu JavaScript Menu Powered by Milonic</a></noscript> 
<script type="text/javascript">
<!-- 
if(ns4)_d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=menu/mmenuns4.js><\/SCR"+"IPT>"); 
else _d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=menu/mmenudom.js><\/SCR"+"IPT>"); 
-->
</SCRIPT>
<SCRIPT type="text/javascript" src="menu/menu_data.js"></SCRIPT> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
And the data file will have this at the top

Code: Select all

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=0;
_subOffsetLeft=-0;
buildAfterLoad=true;
Then change your main menu to have this

Code: Select all

with(milonic=new menuname("index")){
alwaysvisible=1;
margin=2;
orientation="horizontal";
style=horizStyle;
position='relative';
There is a post at the top of this forum for placing the menu relatively in a table or div. I used the first method. One other thing you should do, in your css set your margins that way it will be the same in all browsers.

Ruth
dturner_uk
Beginner
Beginner
Posts: 5
Joined: Sat Nov 24, 2007 5:49 pm

Re: Menu disappearing on page it refers to

Post by dturner_uk »

Many thanks for all your help guys - I'll try this tomorrow when I am fresh and let you know how I do. I really appreciate it!

PS: The "Service Unavailable" message happens sporadically courtesy of my **** provider. They say it's because I'm running their MS Package and all will be fixed if I migrate to their Linux hosting package. Maybe I'll try it one day - once I've fixed the menus.

Thanks again

All the best
David T
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Menu disappearing on page it refers to

Post by John »

Personally I think you'll be a lot happier with a Linux package. Less worries and a lot more flexibility (IMHO).
John
dturner_uk
Beginner
Beginner
Posts: 5
Joined: Sat Nov 24, 2007 5:49 pm

Re: Menu disappearing on page it refers to

Post by dturner_uk »

Thanks for that John. I appreciate the feedback. The site was down the best part of 12 hours again today (IIS probs they *think*!) so I think I'll migrate it to the Linux package and see if things improve. On the bright side, I made a lot of progress with the menus today thanks to you and Ruth.

So many thanks again to you both.

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

Re: Menu disappearing on page it refers to

Post by John »

Our pleasure, David. Kind words most appreciated.

Here's to more progress!
John
Post Reply