Recent Questions Open And Close Tree In Javascript
Q: I would like to create my own jpeg images and use them as the mouseover-items in the top level drop down menus. I am not talking about the backround. I mean the actual upfront button.
I seem to be locked into the size which is the default and would like to change it to width = 180px and height = 45px for each item in the menu.
Is there any way to do that?
A: You should create Individual Style and assign it for all top items.
var itemStyles = [
["itemWidth=180px"],
];
var menuItems = [
["Home","testlink.html", "", "", "", "", "0", "", "", ],
["Product Info","", "deluxe-menu.files/icon1.gif", "deluxe-menu.files/icon1o.gif", "", "", "0", "", "", ],
Q: Thank you for your help, I have downloaded the updated link the .js files are there. I have been using the tuner and was wondering how to change the colors of the main menu bar. I have selected a template that we like (Vista 3, #5), but it isn't quite the right shade of green. I have figured out how to change the colors of all of the "sub" menus, but I don't see where to change the main menu bar. Is this possible, if so, where do I make the change(s)?
A: Top menu items in Vista styles use images as backgrounds. You cannotchange its color in Deluxe Tuner.
You should change the image color. You can do it in any Graph Editor,for example PhotoShop.
Q: I have a issue involving the location of the files.
What is the correct method of referencing the webroot (document root) in the deluxe tuner?
I ask because I have some pages that are in a sub folder on the server.
eg. index page is http://www.domain.com/index.html
but another page might be at
http://www.domain.com/somedir/somepage.html
And then the references do not work.
Currently I am editing the data.js file after saving it in deluxe tuner.
A: If you want to use relative paths you should write your links in thefollowing way.
If you have, for example such file structure:
deluxe-menu_files/
dmenu.js
data.js
images/
html_pages/
page1.html
page2.html
index.html
So, you should write write all your paths concerning index.html file.
For example, you paths will be:
["HOME","html_pages/page1.html", , , , "_self", "-1", , , ],
["ABOUT US","html_pages/page2.html", , , , , , , , ],
Unfortunately, Deluxe Tuner can't do it automatically. You shouldcorrect your paths manually.
You can use additional parameters to make 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:
http://domain.com/pages/index.html
Images paths will be look so:
http://domain.com/images/icon1.gif
http://domain.com/images/icon2.gif
Please, try to use these parameters.
Q: How can I change item width in the Vista templates in the drop down menu generator?
A: The width of vista images is 92px. If the width of your menu itemis wider than 92px you should correct the width of the images in anygraph editor, for example in Photoshop.