Recent Questions
Q: I never succeed to see the images in the dhtml menu examples using my default folder hierarchy (ie : a folder for the html files and a folder for the js files). The only way for me was to create the data.files folder in the html folder. It works but it does not follow my production standard. Did I forget something ?
A: You should set relative paths according to your html page.
For example, you have such file structure:
web-content/
data/
dmenu.js
data.js
Artwork/
image.gif
...
pages/
1.html // page with the dhtml menu examples
2.html // page with the dhtml menu examples
...
So in Deluxe Tuner you should open image.gif file.
You will have, for example:
d:\webpages\site\web-content\Artwork\image.gif
Then you should delete "d:\webpages\site1\web-content\" and add ../prefix. The path will be:
../Artwork/image.gif
You can also set path_prefix
var pathPrefix_img = "../Artwork/";
Or you can try to use absolute paths, for example:
var pathPrefix_img = "http://domain.com/images/";
Q: Is it possible to open a specific tab in javascript menu samples using javascript? For example something like tabObject.open(tab1);
A: You can try to use the following function:
dtabs_itemClick(menuN, itemN);
where
menuN - index of a menu on a page, >= 0.
itemN - index of a tab you want to show, >=0.
Q: How can I add a submenu to the parent javascript menu horizontal?
A: You should add '|' symbols before item's text.
["Samples","", "", "", "", "", "", "", "", "", "", ],
["|Sample 1","testlink.htm", "", "", "", "", "", "", "", "", "", ],
["|Sample 2","testlink.htm", "", "", "", "", "", "", "", "", "", ],
["||Sample 2","testlink.htm", "", "", "", "", "", "", "", "", "", ],
Actually you can create your menu easily in Deluxe Tuner GUI tool.
Q: Ever since I installed the menu on our website the homepage loadsslowly.
The menu loads, but then the rest of the page takes about 20 seconds toload. Have you seen this problem before.
It does not happen every time and noton every machine.
A: We've tested your website on the many machines and it loads very quickly, I cannot notice any delays.
Please, try to move the reference to dmenu.js after tag:
<body onload="...">
...
<!-- Deluxe Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "";</script>
<script type="text/javascript" src="dmenu.js"></script>
<!-- (c) 2006, http://deluxe-menu.com -->
</span>