Navigation Menu Appears Twice

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
nelsonm
Beginner
Beginner
Posts: 2
Joined: Sun Dec 19, 2004 11:45 pm
Location: Connecticut
Contact:

Navigation Menu Appears Twice

Post by nelsonm »

Following the instructions EXACTLY to locate the horizontal menu bar in a table cell, the menu bar also appears in the upper left.

See http://midlife.test.gospelcom.net

How is the menu bar with the absolute address prevented from appearing?
Webmaster at Finishers dot org
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Nelsonm,
You left the main menu in the menu_data.js file with it's top/left position so the program is rendering it in the table and also at that top/left position. Cut the whole main menu out of the menu_data.js file, it is only supposed to be in the table cell. Merry Christmas!

Ruth
nelsonm
Beginner
Beginner
Posts: 2
Joined: Sun Dec 19, 2004 11:45 pm
Location: Connecticut
Contact:

Post by nelsonm »

Thank you. The instructions might be clearer if they were simply:

Move the menu_data.js line

<script language=javascript src="textfiles/menu_data.js" type=text/javascript></script>

from the area just below the body tag to inside the cell you want it to apppear.
Webmaster at Finishers dot org
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You don't put the call for the menu_data.js file into the table cell.

1. You remove the main menu from the menu_data.js file

2. You call the menu_data.js file along with the other 3 files right after the body tag.

3. You put the main menu information in the table cell inside of script tags and with a drawmenus();

Code: Select all

<HTML>
<HEAD>
<TITLE>Table Based Menu</title>
</HEAD>
<BODY> --CALL THE MENU FILES HERE INCLUDING the menu_data.js 
<SCRIPT type="text/javascript" src="milonic_src.js"></SCRIPT>  ETC.
 
<TABLE>
      <TR>
         <TD>PUT THE MAIN MENU HERE INSIDE SCRIPT TAGS and with a    drawmenus();
               <SCRIPT TYPE="text/javascript">
               with(new menuname("Main Menu")){
               ETC.
                }
               drawMenus();
            </SCRIPT>
         </TD>
      </TR>
   </TABLE>
</BODY></HTML>
4. You can put the main menu into it's own js file and call the file in the table cell using script tags <script>main_data.js</script> You would then have two menu files, the menu_data.js file called after the body tag and a main_menu.js file called in the table cell.

Ruth
Post Reply