(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    How can I disable items in drag and drop javascript?

Return to Recent Questions


Q: I want that some drag and drop javascript entries may be disabled and clicking on them should produce predefined javascript alert message. Is it possible?


A: To create disabled items you should set "_" symbol in the target parameter of the menuItems.
["item text", "", , , ,"_",]

You can assign a font color for all disabled items using the following drag and drop javascript parameter:
var fontColorDisabled = "#AAAAAA";
You can call a javascript code instead of an item link:

["item text", "javascript:alert('Hello World')", , , ,"_",]

That's all.





Return to Recent Questions

Related:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. responsive menu | bootstrap menu | creador de paginas web | website designing software | HTML5 Video