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

    How can I disable items in horizontal dhtml menu?

Return to Recent Questions


Q: I want that some horizontal dhtml menu 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 horizontal dhtml menu 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. github pages | creador de paginas web | website generator | CSS Slideshow | css slider