|
|
I was wondering if there is a way to disable the dhtml pull down menu links on a page.
Return to Recent Questions
Q:
Hi, I was wondering if there is a way to disable the dhtml pull down menu links on a page.
(I am creating a site where, in a certain mode, the page is in preview and I
don't want the links to work).
Is this possible?
I can run this function across my other <A> tags (which sets them all to the
current page), but it doesn't reach into the deluxe menu.
for(i=0;i
document.links[i].href = "<?php echo(getURL($_SERVER["REQUEST_URI"]));?>>";
document.links[i].target = "_self";
}
A:
To disable your dhtml pull down 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 02, 2006 - Can I show / hide the javascript floating menu .
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 15, 2006 - Are vertical menus also supported? I don't see any in the javascript menu examples.
- Sep 16, 2006 - I need to be able to highlight the selected menu item of the html tree menu.
- Sep 18, 2006 - The submenus of the cross frame menu are offset by about 100 pixels to the right.
- Sep 18, 2006 - Does the js menu work to load pages into an iframe?
- Sep 22, 2006 - Where do I add my "blahblah.htm" page links in js menu?
|