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

2 menus


Poster: Mlam
Dated: Friday November 12 2004 - 18:53:58 GMT

Hi I am having problems putting 2 menus on a webpage, a vertical menu and a horizontal one. I wanted to do them by calling two different js files but all I get is the the first one which is the horizontal one and then a bunch of space under it. Does anyone know how I can get both of them on the same page without putting all the code inside the page?

--horizontal menu --
<SCRIPT language=JavaScript src="Menus/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=Menus/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=Menus/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="Menus/menu_data.js" type=text/javascript></SCRIPT>

-- vertical menu ---
<SCRIPT language=JavaScript src="Menus/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=Menus/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=Menus/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="Menus/menu_sidedata.js" type=text/javascript></SCRIPT>

Thanks.

Re: 2 menus


Poster: John
Dated: Friday November 12 2004 - 20:09:07 GMT

Mlam wrote:
Does anyone know how I can get both of them on the same page without putting all the code inside the page?

Only call the menu code files once...
Code:
<script language=javascript src="Menus/milonic_src.js" type=text/javascript></script>   
<script language= javascript type=text/javascript>
if(ns4)_d.write("<scr"+"ipt language= javascript src=Menus/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language= javascript src=Menus/mmenudom.js><\/scr"+"ipt>");
</script>
<script language= javascript src="Menus/menu_data.js" type=text/javascript></script>
<script language= javascript src="Menus/menu_sidedata.js" type=text/javascript></script>