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

menu appears in index.html only?


Poster: silsurf
Dated: Sunday September 17 2006 - 16:42:14 BST

Hello,

I am a novice and coding of any kind, but I beleive I have implimented the milonic menus properly, but I cannot get them to load in anything other than my index page.

I use Dreamweaver 8 and have a template built for my pages. I placed the code in the head of the template and as I said it loads correctly in the index page, but every other page on the site does not have the menus.

Any help greatly appreciated.

index page is:
http://www.interactivehank.com
sample page that does not load menus using same template is:
http://www.interactivehank.com/docs/jwc ... habet.html

Thanks so much,

Henry


Poster: Ruth
Dated: Sunday September 17 2006 - 19:32:35 BST

Hello,

The problem is the path set for the menu files. According to your setup you have the menu files at the root directory, that is the same place you have the index page. You have the paths set as
Code:
<script type="text/javascript" src="milonic_src.js"></script>
<noscript><a href="http://www.milonic.com/">JavaScript Menus and DHTML Menus Powered by Milonic</a></noscript>
<script type="text/javascript">
<!--
if(ns4)_d.write("<script language=JavaScript src=mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=mmenudom.js><\/script>");
-->
</script>
<script type="text/javascript" src="menu_data.js"></script>


Since the index page is in the same folder as the menu files the menu shows, but when you load the other page that is in a folder called jwc which is in a folder called docs which is in the root directory that page can't find the menu files because they are not in the jwc folder.

I suggest you create a folder in your root directory called menu, then put all the associated menu files in it, then because you are using a template, I would use the full path, all the pages that have the full path calls for the menu files should always find the menu. Your calls would be

Code:
<script type="text/javascript" src="http://www.interactivehank.com/menu/milonic_src.js"></script>
<noscript><a href="http://www.milonic.com/">JavaScript Menus and DHTML Menus Powered by Milonic</a></noscript>
<script type="text/javascript">
<!--
if(ns4)_d.write("<script language=JavaScript src=http://www.interactivehank.com/menu/mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=http://www.interactivehank.com/menu/mmenudom.js><\/script>");
-->
</script>
<script type="text/javascript" src="http://www.interactivehank.com/menu/menu_data.js"></script>



Hope this helps.

Ruth

That makes sense.


Poster: silsurf
Dated: Sunday September 17 2006 - 21:04:36 BST

Thanks sure makes sense, thanks very much, I imagine everything will work great after I make that directory adjustment.

_so helpful

Henry

that's it!


Poster: silsurf
Dated: Sunday September 17 2006 - 21:47:29 BST

Yup, that certainly was the issue.

Thanks again,

henry