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:30
[resolved] Menu not working with include files.
Poster: dmacman
Dated: Wednesday October 5 2005 - 17:33:09 BST
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/includes/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
Poster: John
Dated: Wednesday October 5 2005 - 21:34:06 BST
Looks like you forgot /noFrames/includes/ in the paths for these items...
Code:
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>");
else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");