Recent Questions
Q: But given the sample on
http://deluxe-menu.com/highlighted-items-sample.html#ind
we want to delete menuentry 'Sample1' and do
dm_ext_deleteItem(2, 4, 0)
This raises an error but according to your javascript menu master manual the first argument should be the menuindex ....which is 2 in our opinion.
A: See, if you have several menus on your page they will have differentID's, for example:
<script type="text/javascript" src="menu/data1.js"></script> //ID=0
<script type="text/javascript" src="menu/data2.js"></script> //ID=1
<script type="text/javascript" src="menu/data3.js"></script> //ID=2
<script type="text/javascript" src="menu/data4.js"></script> //ID=3
So, if you have only one menu on your test page you should use ID=0
Q: I am using collapsible javascript menu. In the menu are some links to pdf-files.
On clicking them, a new window opens and the pdf is shown.
But to download the file, the right mouse click is necessary, but the field with save link isn't displayed. Any idea to solve this problem?
A: You can try to write your tmenuItems in the following way:
["|<a href='file.pdf' target='_blank'>Open file</a>","", "", "", "", "", "", "", "", ],
But you should create correct style for <a> tag.
Q: Also, when I edit "testlink.htm" to any other htm filename, no file isloaded!?
A: Please, make sure that the file that you set for the link exists onyour website and it's placed in the same folder where testlink.htm file is placed.
You can also use absolute paths for links.
Q: I have created a menu for a product tutorial. It consists of about 50 topics, each of which is listed in my menu. I’m wondering if there is a way to gray out the menu link for the open tutorial topic?
A: Unfortunately, Deluxe Menu doesn't have such a feature.
You should write your own code, for example, on PHP.
You can try to use the following function
function disable() {
dm_ext_changeItem(1, 1, 1, ["", "", "", "", "", "_"]);
}
to disable your items.
The example you can find on our site
http://www.deluxe-menu.com/dynamic-functions-sample.html
Please, see the source code.