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:45
Not displaying meny with more than one directory
Poster: wasabi
Dated: Tuesday May 3 2005 - 10:25:05 BST
The meny works perfect when theres only one directory.
e.g. http://www.mysite.com/level1/default.asp
But when I have more than one directory
e.g. http://www.mysite.com/level1/sub1/default.asp
- then the menu is not displaying.
Is there any limitations in directories or the characters in the path?
Poster: Ruth
Dated: Tuesday May 3 2005 - 13:39:59 BST
Where exactly is the menu? Both those pages look exactly the same and I'm not getting any Milonic Menu files.
Ruth
Ooops
Poster: wasabi
Dated: Tuesday May 3 2005 - 13:54:31 BST
Sorry, those were just examples, these are the correct url's:
(still under testing though)
http://www.steepstone.com/topo/default.asp
(this works fine)
http://www.steepstone.com/topo/nissedal/default.asp
(here the menu is not displaing)
- wasabi -
Poster: John
Dated: Tuesday May 3 2005 - 15:48:51 BST
Some suggestions...
1. Upgrade your menu files. You're 6 levels down (7.716). We need current versions posted to give help (7.722).
2. Correct the directory name for the mmenuns4.js call. In one place you have /script/, in the other /scripst/.
3. Use server-relative addressing for your calls; i.e. -
Code:
<script type="text/javascript" src="/scripts/milonic_src.js"></script>
<a class=milonic href="http://www.milonic.com/">JavaScript Menu, DHTML Menu Powered By Milonic</a>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenudom.js><\/scr"+"ipt>");</script>
<script type="text/javascript" src="/scripts/menu_data.js"></script>
<a class=milonic href="http://www.milonic.com/">JavaScript Menu, DHTML Menu Powered By Milonic</a>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenudom.js><\/scr"+"ipt>");</script>
<script type="text/javascript" src="/scripts/menu_data.js"></script>
This way you can write just one JS call and use a simple include statement, instead of re-writing the thing for every level of your site.
two out of three
Poster: wasabi
Dated: Wednesday May 4 2005 - 16:46:03 BST
Done: 1 and 2
Regarding 3: I am using dreamweaver with templates, it seem like the path in :
Code:
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenudom.js><\/scr"+"ipt>");</script>
else _d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenudom.js><\/scr"+"ipt>");</script>
isn't updated.
Maybe because of the "scr+ipt" way this is done. Why is like this? Can this be changed?