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: Thursday February 8 2018 - 06:02:22

menu placement within a table


Poster: drmanny
Dated: Friday October 17 2003 - 18:53:25 BST

Hi
Hi, i need some help
If you go to http://www.allaboutsikhs.com/home1.php
Why am I getting 2 menus??
One on top and one in the table
What am I doing WRONG??
Thanks for all the help
Manny

i placed this in head tag
<script language=Javascript src="library/js/milonic_src.js" type=text/javascript></script>
<script language=Javascript>
if(ns4)_d.write("<scr"+"ipt language=Javascript src=library/js/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=Javascript src=library/js/mmenudom.js><\/scr"+"ipt>");
</script>
<script language=Javascript src="library/js/menu_abs.php" type=text/javascript></script>

placed this in td tag

<script>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("showmenu=intro;image=library/images/intro_off.gif;overimage=library/images/intro_on.gif;");
aI("showmenu=gurus;image=library/images/sgurus_off.gif;overimage=library/images/sgurus_on.gif;");
aI("showmenu=history;image=library/images/shistory_off.gif;overimage=library/images/shistory_on.gif;");
aI("showmenu=way;image=library/images/swayoflife_off.gif;overimage=library/images/swayoflife_on.gif;");
aI("showmenu=scrip;image=library/images/sscrip_off.gif;overimage=library/images/sscrip_on.gif;");
aI("showmenu=gurud;image=library/images/skgd_off.gif;overimage=library/images/skgd_on.gif;");
aI("showmenu=youth;image=library/images/syouth-off.gif;overimage=library/images/syouth-on.gif;");
aI("showmenu=review;image=library/images/sreview_off.gif;overimage=library/images/sreview_on.gif;");
aI("showmenu=resources;image=library/images/resources_off.gif;overimage=library/images/resources_on.gif;");
}
drawMenus();
</script>


Poster: John
Dated: Friday October 17 2003 - 19:34:22 BST

You're getting it twice because you're calling it twice! Once in the HTML <td>, and again in menu_abs.php.

Do this...

1. Remove the complete <script>...</script> entirely from the <td> in your code.

2. Remove <script language=Javascript src="library/js/menu_abs.php" type=text/javascript></script> from its current location in the <head> and put it in the <td> from Step 1 (nothing else - just the call).

3. Move the remaining <script language=Javascript src="library/js/milonic_src.js" type=text/javascript></script>
<script language=Javascript>
if(ns4)_d.write("<scr"+"ipt language=Javascript src=library/js/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=Javascript src=library/js/mmenudom.js><\/scr"+"ipt>");
</script>
from the <head> and put it as the first items after <body>.

4. This isn't messing up the menu, but you might want to correct <td bgcolor="C7C9BC"> by adding a # to the color.

Let us know how your Milonic Manipulation goes. :D


Poster: drmanny
Dated: Friday October 17 2003 - 20:09:01 BST

thanks, got it


Poster: John
Dated: Friday October 17 2003 - 23:22:11 BST

drmanny wrote:thanks, got it

Does that mean it's working, or you're working on it?