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

    The background images is missing in select menu javascript

Return to Recent Questions

Q: I need to include background images in my select menu javascript, 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 select menu javascript 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 select menu javascript 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. parallax scrolling | mobiele website bouwen | web design software | free web design software | free website generator