Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:01

Navigation Menu Appears Twice


Poster: nelsonm
Dated: Sunday December 19 2004 - 22:55:44 GMT

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?


Poster: Ruth
Dated: Monday December 20 2004 - 7:40:48 GMT

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


Poster: nelsonm
Dated: Tuesday December 21 2004 - 15:05:59 GMT

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.


Poster: Ruth
Dated: Tuesday December 21 2004 - 16:32:31 GMT

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:
<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