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

Calling Two Seperate Menus from one page


Poster: Matt Stano
Dated: Wednesday October 19 2005 - 16:04:30 BST

Hi All,

I'm am attempting to figure out if I can call two seperate menu files with a single document. I have had multiple menus that references one menu_data.js and it works fine. But now I'm looking to seperate the two menu into different files. In my Index.htm I have my script lines that
call my java, (see below)


<script type="text/javascript" src="/java2/milonic_src.js"></script>
<div class=milonic><a href="http://www.milonic.com/">JavaScript Menu, DHTML Menu Powered By Milonic</a></div>

<script type="text/javascript">

if(ns4)_d.write("<scr"+"ipt type=text/javascript src=/java2/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=/java2/mmenudom.js><\/scr"+"ipt>");
</script>

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

<font face="Arial, Helvetica, sans-serif">


Can I have another set of line that reference a seperate folder with different java and menu style? Maybe to java3/house2_data.js?

Thanks for all the help,
Matt


Poster: John
Dated: Wednesday October 19 2005 - 22:01:56 BST

Yes, you can do that as you described (if I understand it correctly). Only one set of calls to the code files is necessary, but you can have as many _data files as you need.

See http://tiggrsuccess.com/ for an example of a horizontal and a vertical on the same page.