|
|
If there is a way to disable links in the dhtml context menu on a page.
Return to Recent Questions
Q:
I was wondering if there is a way to disable links in the dhtml context menu on a page.
A:
To disable your menu items you should set the following parameter to disable all items:
var itemTarget="_";
Or you can disable items individually.
["Home","testlink.html", "", "", "", "_", "", "", "", "", "", ], //disabled
["Product Info","", "", "", "", "", "", "", "", "", "", ],
["|Features","testlink.html", "", "", "", "_", "", "", "", "", "", ], //disabled
["|Installation","", "", "", "", "", "", "", "", "", "", ],
You can also use function dm_ext_changeItem (menuInd, submenuInd, itemInd, iParams)
function to disable items on-the-fly, for example:
dm_ext_changeItem (0, 2, 3, ["", "", "", "", "", "_", "", "", ""]);
Return to Recent Questions
Related:
- Sep 22, 2006 - Where do I add my "blahblah.htm" page links in js menu?
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Oct 26, 2006 - I would like to load an iframe into one of the items in oncontextmenu.
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Oct 30, 2006 - I don't see on my website dhtml mouseover menu that I saw on my local machine.
- Nov 05, 2006 - The font color doesn't change when I roll over the dhtml side menu
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Nov 23, 2006 - It is possible to have context menu work with your tree menu dhtml?
- Dec 04, 2006 - With the licensed .js files of menu dhtml the status bar on IE shows "Error on page".
- Dec 09, 2006 - Is it possible to have css drop down menu items act like regular hyperlinks?
- Dec 09, 2006 - Is there any way to change the font size of the secondary and tertiary links in menu.js?
|