[resolved] Menu not working with include files.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dmacman
Super Advanced
Super Advanced
Posts: 59
Joined: Wed Sep 21, 2005 3:49 pm

[resolved] Menu not working with include files.

Post by dmacman »

Hi All,

On this page:

http://intheclassroom.org/noFrames/products/index2.php

I am changing my site to use header and footer files (in PHP) and the menu images dropped out on this page.

What I do not understand is the header file(s) all include a litereal, or direct path like this (http://www.intheclassroom.org/noFrames/ ... header.php) which should allow the code to work regardless of what page is located in any sub-directory.

Maybe the Milonc DHTML code must have the (menu_data.js, mmenudom.js, mmenuns4.js) files in every directory. But I would think that you could have them all reside in an includes, directory for al lpages to use.

The menus work in the root ok:

http://www.intheclassroom.org/noFrames/index.php

Does anyone have any experience in this issue?

Thanks in advance,

Don
Last edited by dmacman on Thu Oct 06, 2005 4:50 pm, edited 1 time in total.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Looks like you forgot /noFrames/includes/ in the paths for these items...

Code: Select all

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>");
John
dmacman
Super Advanced
Super Advanced
Posts: 59
Joined: Wed Sep 21, 2005 3:49 pm

Post by dmacman »

Thanks,

Two heads are better than one!

That fixed it.

Consider this thread [resolved].

Don
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Glad to hear it. That makes one-in-a-row for the day... :roll:
John
Post Reply