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

multiple menus..


Poster: sergio_101
Dated: Monday August 22 2005 - 8:31:53 BST

this pertains to the question i followed up on earlier..

is it possible to develop multiple menus in the same file?

right now, my menus are being built (via php) in the menu_data.js file. i would like to be able to dump everything in there, and have several pages that pull only the required menus from them..

for instance..

http://red-red.dyndns.info:8000/ACP/

i would like to be able to pull separate menus for each button on the left side of the page..


different pages will have different buttons requiring different menu sets..

is this possible?

thanks!


Poster: Ruth
Dated: Monday August 22 2005 - 17:01:08 BST

Since you are using the popup function, you'd just create each menu in the menu_data.js file and call the one you want from the image you want. You'd place the call for the Milonic files right after the body tag, then where the image is going to be [assume you're calling the partners menu from the downloaded Milonic file] you'd have this

Code:
<A
      onmouseover="MM_swapImage('Full-Line-Items','','full-line-rollover_19.gif',1)"
      onmouseout="MM_swapImgRestore()" href="http://red-red.dyndns.info:8000/ACP/#">
     <img id="partnersmenu" onmouseover="popup('partners','partnersmenu')"
     onmouseout="popdown()" height="66"
       src="ACP_19.gif" width="170" border=0
      name="Full-Line-Items" alt="Full Line List"></A>


On each image you'd call whichever menu you wanted for that image.

Ruth


Poster: sergio_101
Dated: Monday August 22 2005 - 20:48:36 BST

okay, i am getting closer to understanding..

but this is where i am getting lost..

what malonic code do i need to put on the head of the file?

if i put this:

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


i end up with the menu showing up in the upper right hand corner only..

how do i keep that from showing up?

thanks so much!


Poster: Ruth
Dated: Monday August 22 2005 - 21:08:32 BST

Hi,

I'm assuming the menu_data.js file you are using is the one that came in the download. That has an alwaysvisbile main menu which has the position and items in it. Get rid of the main menu from the data file. I suggest you just put // in front of each of the main menu lines, or cut and save it to some file so you have it incase you decide on another site to not use a popup type menu but the full menu as it is now in the data file.

In effect what you are doing is using your images to be the 'main' menu so that the program popup and mouseover and all the other functions in the program work from those images.

Ruth


Poster: sergio_101
Dated: Monday August 22 2005 - 21:57:04 BST

ah! i see.. i will try this..

actually, i am not using the one that came with the package, but am using a php script to write the menu script when something changes in the database..

i will check that file against you comments and go from there..

thanks!