Recent Questions
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>
Q: I can’t seem to figure out how to keep last clicked item in my java menu script marked.
I use these options:
pressedItem = -1
var saveNavigationPath = 1;
Where and how do I determine the background color of the clicked item?
I also have this problem on Deluxe Tree.
A: The menu has only two states normal and mouseover.
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, forexample:
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<script type="text/javascript"> var pressedItem=3;</script>
...
<script type="text/javascript" src="menudir/data.js"></script>
You can also set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on PHP.
Q: In DeluxeTuner when I choose an image and use my own path DeluxeTuner always sticks it's own path (data.files/) into the .js file.
Then I have to go into the data.js file and re-edit the path manually.
A: If you use Tuner, you should save data .js file before you'll selectimages. When you save .js file it means that you set a root directoryfor the project, so Tuner can make all selected images with relativepaths.
Q: Thank you. I got the menu working on my web page.
Now, I have to pass dynamic value from the link when the user click the floating javascript menu.
I was using a table type of menu and passing value like this
<td onclick="document.iframename.location.href='abc.jsp?value1=<%value1%>&value2=<%value2%>Click here</td>
What should I do to the deluxe-menu to get the same action?
I need to pass value to next page. The value is dynamic, so I have to use <%value1%> notation for JSP file.
A: Actually you can use your own Javascript code instead standard links. For example:
var menuItems = [
["text", "javascript:your_code_here"]
];
or
var menuitems = [
["<div onClick='your_code_here'>item text</div>", ""]
];