I never succeed to see images in the dhtml menu examples using my default folder hierarchy...
Return to Recent Questions
Q:
I never succeed to see the
images in the dhtml menu examples using my default folder hierarchy (ie : a folder for the html
files and a folder for the js files). The only way for me was to
create the data.files folder in the html folder. It works but it
does not follow my production standard. Did I forget something ?
A:
You should set relative paths according to your html page.
For example, you have such file structure:
web-content/
data/
dmenu.js
data.js
Artwork/
image.gif
...
pages/
1.html // page with the dhtml menu examples
2.html // page with the dhtml menu examples
...
So in Deluxe Tuner you should open image.gif file.
You will have, for example:
d:\webpages\site\web-content\Artwork\image.gif
Then you should delete "d:\webpages\site1\web-content\" and add ../
prefix. The path will be:
../Artwork/image.gif
You can also set path_prefix
var pathPrefix_img = "../Artwork/";
Or you can try to use absolute paths, for example:
var pathPrefix_img = "http://domain.com/images/";
Return to Recent Questions
Related:
- Sep 15, 2006 - Are vertical menus also supported? I don't see any in the javascript menu examples.
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Oct 13, 2006 - Under the menu images there is a gray line that makes it look broken.
- Oct 19, 2006 - I want a javascript toolbar with all the buttons the same length.
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Oct 30, 2006 - I don't see on my website dhtml mouseover menu that I saw on my local machine.
- Nov 05, 2006 - The font color doesn't change when I roll over the dhtml side menu
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Nov 20, 2006 - I've tried to add the pathPrefix_img but I'm still having trouble with images in jump menu.
- Nov 23, 2006 - It is possible to have context menu work with your tree menu dhtml?
- Nov 29, 2006 - Why the background images disappear for a while after hovering over html menubar?
|