Calling Two Seperate Menus from one page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Matt Stano
Beginner
Beginner
Posts: 9
Joined: Wed Aug 31, 2005 9:15 pm
Location: Hampton, NH

Calling Two Seperate Menus from one page

Post by Matt Stano »

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://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
-------------------------------
"Outside a dog, a book is man's best friend.
Inside a dog, it's too dark to read."
~Groucho Marx~

Matthew Stano
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
Post Reply