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

    How can I disable items in drop down horizontal menu?

Return to Recent Questions

Q: I want that some drop down horizontal 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 drop down horizontal 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

Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap parallax | html website maker | static website generator | HTML5 Video Player | css menu maker