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

How to use 2 menus on 1 page


Poster: djdevon3
Dated: Friday April 2 2004 - 15:41:17 BST

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


Poster: Maz
Dated: Friday April 2 2004 - 16:06:14 BST

Did you download tooltips.js?
http://www.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

Some of it working


Poster: djdevon3
Dated: Friday April 2 2004 - 16:19:59 BST

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.


Poster: Maz
Dated: Friday April 2 2004 - 16:46:00 BST

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

right on


Poster: djdevon3
Dated: Friday April 2 2004 - 17:47:10 BST

well so far things are working this way for me and i say if it's not broken don't fix it :)


Poster: John
Dated: Friday April 2 2004 - 18:56:50 BST

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.