Recent Questions Sliding Tree Menus ScriptQ:
Is this possible?
var menuItems = [
var menuitems = [
["<div onContextMenu='your_code_here'>item text</div>", ""]
Actually you can use any html code within menuItems.
butyou can highlight menu items in two ways:
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, forexample:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on PHP.
You can find more info here:
The mentioned effect occurs even when the entire page is completely loaded!
As we explained before, it occurs only when we view the page with explorer 6.
(It is working fine under explorer 7 and under Firefox, so you should check it under explorer 6)
Please see the following link with our test page which demonstrates the problem.
You can find more info about this bug and solution here:
How can I keep the items in dhtml css menu from opening into a new window when selected?A: You can set target parameter for all items:
or for each item individually:
["Home","testlink.html", "", "", "", "_self", "", "", "", "", "", ],