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

    The background images is missing in javascript dhtml menu

Return to Recent Questions

Q: I need to include background images in my javascript dhtml menu, so I put them in the same folder where the "data.js" file can be found.

I am using the DHTML Tuner to assign these files and javascript dhtml menu looks great in the preview.

As soon as I save the file and load it in the browser, the background images are missing.
How I can fix this problem?

A: Now you have the following paths for all your images "data.files/image.gif"

var itemStyles = [

But you don't have images in "data.files/" folder. That's why you can't see them.
Check your paths.

You can use additional parameters to make javascript dhtml menu 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:

Images paths will be look so:

Try to use these parameters.

Return to Recent Questions

Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap template | best website builder | bootstrap popup window | jquery slider | banner slider