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

Have 2 dhtml menus on the same page !


Poster: elicend
Dated: Friday August 4 2006 - 19:58:21 BST

Hi

your menus are so nice !
but, as i'm working on a phpnuke site, i would like to have 2 menus in the same page, one dedicated to the site, and one used only for the forum.

is it possible ?

i've already change directories for each menu, and there are pointing the good one, but, there are mixed.

can you help me !

thanks a lot!
elicend

http://www.miniend.com
(no menu already installed)


Poster: Ruth
Dated: Monday August 7 2006 - 10:04:16 BST

Hi,

Go to the main site http://www.milonic.com/

Look under Support and go down to Multiple Menus on a Page. There are directions for how to do that.

Ruth


Poster: elicend
Dated: Monday August 7 2006 - 18:31:05 BST

Thanks a lot for your answer, but, on your sample, i think it is the way to follow if you want to have several times the same menu on the page.

In my case, i would be able to insert 2 differents menus... i don't think this way is descrived... but i'm not sure of my translation...

could you confirm me that it is possible or not to have 2 different menus on the same page ?

thanks by advance !

sorry for my poor english, i'm french ;).

Elicend.


Poster: Ruth
Dated: Monday August 7 2006 - 19:07:26 BST

Hi,

Yes you can have two different menus on the same page. The easiest way is to create two different data files... menu_data_horz.js and menu_data_vert.js as an example.

You must make sure you do not name any of the menus in the two files the same since that would confuse the program. For example, if you named one main in one file and main in the other, the menu program would open the first menu it got to that said main.

You can also just put them all in to the same menu_data.js file if you wanted. You would just set the positions and alwaysvisible in both the ones you wanted to be always visible. Again, don't use the same names on menus in the two different 'areas'

Ruth


Poster: elicend
Dated: Monday August 7 2006 - 21:19:39 BST

Thanks!

I'm afraid that i have several problems :(

i followed your explainations, and named one with _main, and the second one with _forum. By the way, both was still mixed :(
then, i tryed to change all js names but that was not better !

when i get off one off the 2 menus, that's ok except that it is written in very very small caracters ! i was ok to make the menu bigger, by the padding variable, but not the police one :(

sorry to ask up so much questions ;)

bye ;)


Poster: Ruth
Dated: Tuesday August 8 2006 - 7:35:15 BST

Hi,

You are going to have to give us a page with the menus so we can see what is happening and get an idea of what you want. Without that it would just be a guess each time you had a problem. Can you not put up a test page showing what you want?

Ruth


Poster: elicend
Dated: Tuesday August 8 2006 - 21:48:36 BST

Hi

thank for try to find solutions !

i can't put the page on the web cause it is a phpnuke site, but, i'll put tomorrow some picture of the pb and if it is possible, a link to a test server ;)

i'll put here a world when it will be ok, that might be tomorrow ;)

the target site where i want to install the menus is : http://www.miniend.com


Poster: elicend
Dated: Wednesday August 9 2006 - 21:15:58 BST

hi

here are 2 pictures :
Image

and

Image

i would like to have both in the same time, and with a bigger font.

this is with a wamp server.

thanks.
elicend.

edit : icons pictures in menus are wrong, that's not a problem, it is just because i put them in subfolder and didn't change links.


Poster: elicend
Dated: Friday August 11 2006 - 21:08:54 BST

hi

does my picture help you to understand ?

i'll be away for 4 days, so don't worry if i don't answer you during this long WE in france ;)

elicend.


Poster: Ruth
Dated: Friday August 11 2006 - 23:39:33 BST

Hi,

I'm sorry, I can't tell from the pictures what you want. Are you saying you want to have the menu at the top in the top picture and also the menu at the top in the bottom picture and you want them to both look the same but to have different items in them? Do you want them both to be at the top like that one above the other? Or is there a menu at the side that you are talking about?

As to the font size, you probably have it coded to be a % so it is whatever % of the size you have set in your browser. You can code the font size in the menu_data.js file. fontsize=12; that will be 12px since pixels is the default. It's better to use px since they render more or less similar across browsers.

Ruth


Poster: elicend
Dated: Tuesday August 15 2006 - 21:15:21 BST

hi

thanks, i'll try to answer :

the menu in the top picture must be in all pages of the site.
the menu in the second picture must appear when the site is open on the forum.

so : on all pages, exept on the forum, i want to have the first menu, and on the site opened on the forum, i want both.

the first one shoult have item from the site, example :
index, forum, faq, tip, tooling pages...

the second one shoult have differents items :
forum, search, profile, members...

ok for the px and% i'll try tomorrow and i'll tell you if it is better ;)

bye


Poster: Ruth
Dated: Tuesday August 15 2006 - 21:30:54 BST

Hi,

OK, you would make two menu_data.js files. For explanation sake let's say you make one and call it all_pages_menu.js. In that one you'd code in all the things you want on that menu, as you said, home, forums etc.

Then make another that you call forum_menu.js

Once you have made the two different files. Then on all the pages where the all_pages_menu is to appear you'd put the call for that file, and on the forum pages where you want the other menu to also appear you'd put the call for both the files.

Calls for all pages but forum pages would be, using the above names
Code:
<!--
    Milonic DHTML Website Navigation Menu Version 5.0+
    Copyright 2006 (c) Milonic Solutions Limited (UK). All Rights Reserved.
    Please visit http://www.milonic.com/ for more information.

    Although this software may have been freely downloaded, you must obtain a license before using it in any production environment.      
    The free use of this menu is only available for Non-Profit, Educational & Personal Web Sites who have obtained a license to use.
   
    Free, Commercial and Corporate Licenses are available from our website.
    You also need to include a link back to http://www.milonic.com/ if you use the free license.
   
    All Copyright notices MUST remain in place at ALL times.
    This includes the first three lines of this notice on every page that uses the menu.
    If you cannot comply with all of the above requirements, please contact us to arrange a license waiver.
-->   


<script type="text/javascript" src="milonic_src.js"></script>   
<noscript><a href="http://www.milonic.com/">DHTML Menu JavaScript Menu Powered by Milonic</a></noscript>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="all_pages_menu.js"></script>   


Then on the forum pages the calls would be:
Code:
<!--
    Milonic DHTML Website Navigation Menu Version 5.0+
    Copyright 2006 (c) Milonic Solutions Limited (UK). All Rights Reserved.
    Please visit http://www.milonic.com/ for more information.

    Although this software may have been freely downloaded, you must obtain a license before using it in any production environment.      
    The free use of this menu is only available for Non-Profit, Educational & Personal Web Sites who have obtained a license to use.
   
    Free, Commercial and Corporate Licenses are available from our website.
    You also need to include a link back to http://www.milonic.com/ if you use the free license.
   
    All Copyright notices MUST remain in place at ALL times.
    This includes the first three lines of this notice on every page that uses the menu.
    If you cannot comply with all of the above requirements, please contact us to arrange a license waiver.
-->   


<script type="text/javascript" src="milonic_src.js"></script>   
<noscript><a href="http://www.milonic.com/">DHTML Menu JavaScript Menu Powered by Milonic</a></noscript>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="all_pages_menu.js"></script>
<script type="text/javascript" src="forum_menu.js"></script>


Hope this helps. Just make sure you don't name any menus in the two different js files the same. For example if you want to name your visible menus as main menu, you would need to name one main menu and the other as main menu1 or forum main or something.

Ruth


Poster: elicend
Dated: Thursday August 31 2006 - 22:10:39 BST

sorry for the time !

the las solution is good,

that was that was wrong :

Code:
<script type="text/javascript" src="all_pages_menu.js"></script>
<script type="text/javascript" src="forum_menu.js"></script>


thanks for help, i'll have to check the size now ;)