The background images for css submenu are missing in the browser...
Return to Recent Questions
Q:
I put all images in the same folder where the "data.js" file can be found. My css submenu looks
great in the preview. As soon as I save the file and load it in the
browser, the background images are missing.
You advise to set absolute paths using var
pathPrefix_img = "http://domain.com/images/";
I have implemented this solution but 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 correct.
You should write your css submenu paths on the following way:
var arrowImageSub=["submenuIconOff.gif","submenuIconOn.gif"];
Please, correct it.
Return to Recent Questions
Related:
- Jun 04, 2009 - I've tried to change the width of the images within the dhtml expandable menu...
- Jun 18, 2009 - The background images is missing in css dropdown menu
- Jun 23, 2009 - I cannot get the separator images to appear in the javascript menu bar.
- Jul 02, 2009 - Some graphic files for the top-level net dhtml menu are missing.
- Aug 13, 2009 - Why the background images disappear after hovering over floating menu html items?
- Aug 22, 2009 - I've tried to specify the pathPrefix_img but I'm still having problem with images in web menu download.
- Sep 13, 2009 - There is a gray line under the website menus images that makes it look broken.
- Jan 26, 2010 - Is it possible to use background images for the top items in menu in javascript?
- March 7, 2010 - At the first time arrow images are loaded successfully in the html menu maker.
- March 27, 2010 - How create javascript collapsible menu using images that were created in a different program?
- April 6, 2010 - We would like to add tab menu css by using deluxe menu for our images.
|