menu appears in index.html only?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
silsurf
Beginner
Beginner
Posts: 3
Joined: Sun Sep 17, 2006 4:36 pm

menu appears in index.html only?

Post by silsurf »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

<script type="text/javascript" src="milonic_src.js"></script> 
<noscript><a href="https://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: Select all

<script type="text/javascript" src="http://www.interactivehank.com/menu/milonic_src.js"></script> 
<noscript><a href="https://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
silsurf
Beginner
Beginner
Posts: 3
Joined: Sun Sep 17, 2006 4:36 pm

That makes sense.

Post by silsurf »

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

_so helpful

Henry
silsurf
Beginner
Beginner
Posts: 3
Joined: Sun Sep 17, 2006 4:36 pm

that's it!

Post by silsurf »

Yup, that certainly was the issue.

Thanks again,

henry
Post Reply