The background images for dhtml drop down menus are missing in the browser
Return to Recent Questions
Q:
I need to include background images for my navigation, so I put
them in the same folder where the "data.js" file can be found. I am
using the deluxe tuner in order to call these files and it looks
great in the preview. As soon as I save the file and load it in the
browser, the background images are missing.
Your solution refers to creating absolute paths using var
pathPrefix_img = "http://domain.com/images/";
I have implemented this solution but I still think the problem persists.
A:
Now you set pathPrefix parameter:
var pathPrefix_img = "http://www.domain/folder/menudir/dataAlumni.files/";
And you have such images paths, for example:
var arrowImageSub=["dataAlumni.files/submenuIconOff.gif","dataAlumni.files/submenuIconOn.gif"];
So you have such paths for arrows:
http://www.domain/folder/menudir/dataAlumni.files/dataAlumni.files/submenuIconOff.gif
It is not right.
You should write your paths so:
var arrowImageSub=["submenuIconOff.gif","submenuIconOn.gif"];
Please, correct it.
Return to Recent Questions
|