|
|
|
How can I disable items in drop down dhtml menu?
Return to Recent Questions
Q:
I want that some drop down 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 drop down 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:
- March 31, 2009 - Is there any way can we display submenu items on mouse over in menus css?
- Apr 01, 2009 - How can I set different parameters for diferent items in my dhtml sliding menu?
- Apr 03, 2009 - I would like to change the height of the submenu items in the css drop down menus...
- Apr 04, 2009 - Is there a way to have an automatic line-break for large submenu items in javascript image menu?
- Apr 06, 2009 - Can the link items NOT open a new window in the popup menu?
- Apr 11, 2009 - I cannot see the shadow on the top items in my css horizontal menus example.
- Apr 15, 2009 - My mainmenu items are not links. So I need no link cursor for these dropdown javascript items.
- Apr 20, 2009 - I need the BG color behind items to be flush with the sides of the website navigation bar.
- Apr 30, 2009 - Do you have a html drop down menus that allows the sub-items to 'slide' out from the main items?
- May 02, 2009 - How can I add "|" separating in the menu items with your drop down menu?
- May 28, 2009 - Can I put a break line to write my items in several lines in list css menu sample?
|