Recent Questions
Q: Can I use javascript to get the object (getElementByID). If not howdo I hide my dropdown menu on print?
A: You can add a new button to print your page and call onClick event, soyou should write: 
<body .... 
onClick="document.getElementById('dm0m0').style.visibility='hidden'; window.print();"> 
 ... 
</body> 
Or you can use the same javascript code from your menu item. 
For example: 
  var menuItems = [ 
 ["Print", "javascript:document.getElementById('dm0m0').style.visibility='hidden'; 
window.print();", icon1, icon2], 
]; 
But if you want to hide the menu when your customers push "File/Print"you should write so: 
You must create two functions, for example: 
 
function myprint() 
{ document.getElementById('dm0m0').style.visibility='hidden'; 
 window.print(); 
} 
function myprint2() 
{ document.getElementById('dm0m0').style.visibility='visible';
 window.print(); 
} 
You should add this functions into your code. 
 
And then you must write so: 
 
window.onbeforeprint = myprint; 
window.onafterprint = myprint2;
Q: How do I disable the menu link for the page that is currently being displayed? I don’t the menu item removed, I just want the link to be inactive and possibly a different color.
 
A:  To disable items you should set the target parameter to "_".
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
Q: Can I show / hide the javascript floating menu as needed.
A: You should paste javascript code into item's link field of the floating menu,for example:
   var menuItems = 
[ ["text", "javascript:document.getElementById('dm0m0').style.visibility='hidden'", ...]
 ]; 
Q: In dhtml xml menu, is possible call javascript when click on an item without close the menu?
A:  In Deluxe Menu you can use the following parameter:
  var smHideOnClick=1;
Hides submenus on click
0 - disabled, 1 - enabled.