How to use 2 menus on 1 page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
djdevon3
Beginner
Beginner
Posts: 4
Joined: Thu Apr 01, 2004 9:41 pm
Location: South Florida
Contact:

How to use 2 menus on 1 page

Post by djdevon3 »

I have a regular vert nav on the left.
I would like to use another vert nav w/tooltips on the same page for descriptions of products. As it stands now when i'm calling the vert nav from root. My other menu i'm calling from /pages directory...in hopes they wouldn't conflict. I took the conflicting code out. I'm posting here so someone can take a look at the page and tell me what the heck I'm doing wrong. I'm not that great with js.


http://www.DeidraMarcus.com/pages/MENUTEST.html
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Did you download tooltips.js?
http://milonic.com/menusample6.php

I don't think there would be any conflict, only when you include tooltip will it activate tooltips.js

<a href="menu.htm" onmouseover="showtip('Here is some tool tip text')" onmouseout="popdown"><img src=/images/image.gif></a>

Try adding the tool tip so we can see why its not working.


Additionally... place this after <body> remove the ... make the path start with /

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

By looking at Milonic src you can see it set up.

maz
djdevon3
Beginner
Beginner
Posts: 4
Joined: Thu Apr 01, 2004 9:41 pm
Location: South Florida
Contact:

Some of it working

Post by djdevon3 »

I copied menu_data and pasted itself in the same document making two menus...then renamed it to menu_data2. This enabled the 2nd menu to show up plus my first nav :) I did forget to add the tooltips call. Working on that now. Thanks for the help. Very quick response! Milonic is rockin so far, EXTREMELY EASY to configure and change! Now I'm not the best with js but having worked with php on many sites i'm familiar with remote calls and spaghetti like code. Milonic is perfect thus far just user error. You guys really have your stuff together.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I don't think you need 2 menus even, usually its best to just change the style names on one menu_data.

So where you have the style name and menustyle= should match.

You can add as many styles as you need each with their own name.

Name each main menu and submenus too so they don't cross over.

Just duplicate and rename them is easiest to avoid error.

maz
djdevon3
Beginner
Beginner
Posts: 4
Joined: Thu Apr 01, 2004 9:41 pm
Location: South Florida
Contact:

right on

Post by djdevon3 »

well so far things are working this way for me and i say if it's not broken don't fix it :)
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I agree with Maz on the use of 2 menus. I don't see the reason. Also, the 2-item menu is right on top of your double-grey header, and partially covers the text in the first line (Aromatherapy Herbal Body Wrap (30 Min)). Really doesn't look good.
John
Post Reply