collaps/horizontal menu on the same site

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Cirtap
Advanced
Advanced
Posts: 17
Joined: Fri Mar 19, 2004 10:02 am

collaps/horizontal menu on the same site

Post by Cirtap »

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!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
Cirtap
Advanced
Advanced
Posts: 17
Joined: Fri Mar 19, 2004 10:02 am

Post by Cirtap »

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: Select all

<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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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?
John
Post Reply