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

collaps/horizontal menu on the same site


Poster: Cirtap
Dated: Monday October 9 2006 - 15:36:07 BST

Hi!
I´m trying to put one horizontal and one verticalmenu on the same site. Think I have tryed everything now but it still wont work.
Sombody please!


Poster: John
Dated: Monday October 9 2006 - 19:03:05 BST

You've given us no idea of what you've already tried, or any idea of the code you're using. That pretty much leaves us in the dark as to where to start.

One guess - have you tried using 2 _data.js files, one for each menu?

Please provide a URL (best), or at least post the code here. Don't forget to use the [code][/code] tags if you post it here.


Poster: Cirtap
Dated: Wednesday October 11 2006 - 9:19:53 BST

Sorry John, here is more information!

First of all.
I´m trying to make i site with two menus (horizintal and collaps).
Have two folders, one horizontal containing menu_data.js, milonic_src.js, mmenudom.js, mmenuns4.js. And one vertico containing collapse_data.js and treemenu.js

The cod looks like this:
Code:
<html>

   <head>
      <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
      <meta name="generator" content="GoLiveCS">
      <title>En fri och obunden Arbetsgivarorganisation</title>
      <link href="stil.css" rel="stylesheet" type="text/css" media="all">
      <script type="text/javascript" src="horizontal/milonic_src.js"></script>
      <script type="text/javascript">
<!--
if(ns4)_d.write("<script language=JavaScript src=horizontal/mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=horizontal/mmenudom.js><\/script>");
-->
</script>
      <script type="text/javascript" src="horizontal/menu_data.js"></script>
         

<SCRIPT language=JavaScript src="vertico/collapse_data.js" type=text/javascript></SCRIPT>
      <SCRIPT language=JavaScript src="vertico/treemenu.js" type=text/javascript></SCRIPT>
      <script>

function changeCM(th)
{
   if(!th.checked)singleMasterMenu=false; else singleMasterMenu=true
}


</script>
   </head>


The strange thing is that for a moment i worked.
//Patric


Poster: John
Dated: Wednesday October 11 2006 - 15:15:39 BST

You used the [code][/code] tags as I suggested (thank you), but you have 'Disable BBCode in this post' checked, so the tags were not recognized. I corrected that for this post.

OK, can we ass-ume (not you - I just don't like that word) that you are running the latest versions of both the menu code (v5.759) and the treemenu code (v1.24 - September 4 2006)?

Next, while the menu should work fine with the calls in the head, we usually find that placing them immediately after the <body> works best.

And, while the code you posted is appreciated, it still won't give us a page to look at. Can you not provide a URL? If not, post your complete page code and both _data files here.

What exactly is it that's failing?