(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    I created a custom page for our site, but the dhtml menu vertical won't display.

Return to Recent Questions


Q: I created a custom page for our website, but the dhtml menu vertical won't display.

I found that this was due to the erroneous "current directory" for a dhtml menu vertical images.

which is: level2/level3/

I changed the script code from:
<script type="text/javascript">var dmWorkPath = "DMworkfiles/";</script>
<script type="text/javascript" src="DMworkfiles/dmenu.js"></script>

to:

<script type="text/javascript">var dmWorkPath = "DMworkfiles/";</script>
<script type="text/javascript" src="/DMworkfiles/dmenu.js"></script>

I also had to prefix all of the links in the dhtml menu vertical with a "/" to indicate the root directory because of the "current directory" for the bad page.

The problem is that the little dhtml menu vertical arrow .gif cannot be found in the "current working directory".

What am I doing wrong or missing here?


A: Try to use additional parameters to make dhtml menu vertical paths absolute:

var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";

These parameters allow to make images and links paths absolute.
For example:

var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";

var menuItems = [
["text", "index.html", "icon1.gif", "icon2.gif"],
];

So, link path will be look so:
http://domain.com/pages/index.html

Images paths will be look so:
http://domain.com/images/icon1.gif
http://domain.com/images/icon2.gif

Please, try to use these parameters





Return to Recent Questions

Related:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. github pages | website designing software | web editor | bootstrap popup window | HTML5 Video Player