Recent Questions Javascript Tree Depth
Q: How can I open the links that I created for the web drop menu /sub-menu on the same window (not on a new window)
A: You can set target parameter for all items:
var itemTarget="_self";
or for each item individually:
["","testlink.htm","http://images.myregistry.com/images/myregistry/tabs/thingstodo.gif", "http://images.myregistry.com/images/myregistry/tabs/thingstodo1.gif", "Home Tip","_self", "0", "0", , ],
Q: I have a paid version of the menu, and I was trying to add the functionality of dynamically adding net dhtml menu item
When I added the code I get the following JS error,
menu is undefined in dmenu_dyn.js (line 13)
dm_ext_addItemPos(1, 0, ["Netscape", "testlink.htm", "", 4 more...], -1)dmenu_dyn.js (line 13)
dm_ext_addItem(1, 0, ["Netscape", "testlink.htm", "", 4 more...])dmenu_dyn.js (line 13)
function dm_ext_hideAllSubmenus(mInd){_dmsm(mInd);};function dm_ext_changeItem(m...
I copied the example from your site, just to see if I can use it.
What am I doing wrong?
A: See, we have two menus on the sample's page
http://deluxe-menu.com/dynamic-functions-sample.html
That's why we write menuInd = 1
dm_ext_addItemPos(1, ...
dm_ext_addItemPos(1, 0, ["Netscape", "testlink.htm", "", 4 more...], -1)dmenu_dyn.js (line 13)
dm_ext_addItem(1, 0, ["Netscape", "testlink.htm", "", 4 more...])dmenu_dyn.js (line 13)
But if you have only one menu you should write menuInd = 0
dm_ext_addItemPos(0, ...
dm_ext_addItem(0, ...
Q: Hello, I’ve set my menus up so that they are positioned on my page within a container div (not using the positioning built into the menu script).
I am also trying to use the autoscroll feature as some of the submenus are quite long. The autoscroll doesn’t seem to work with the css positioning though.
I also tried to size the submenus to force them small and thus to scroll with no luck.
The scrolling works fine when I pull the menus out of the container div and just place them in the flow of the page.
Am I doing something wrong or are these two features incompatible with each other.
A: Unfortunately, it is really so. Submenu scrolling doesn't work with css. We'll try to fix it in the future versions.
You can try to use multicolomn submenus.
http://deluxe-menu.com/multicolumn-menu-sample.html
Q: When the page initially loads, the sizing of all the tabsappear the way I want them to.
The first time any of the tabs are clicked on in the dhtml tab menu, I get a little bit of white space and a faint vertical line just to the left of tab 1.
A: Try to set your tabs in the following way:
var bmenuItems = [
["TRACING SYSTEM","link:tracing.html", "", "", "", "AUTOMATED TRACING SYSTEM", "", "", "", ],
["DOCUMENT RETRIEVAL","link:docret.html", "", "", "", "DOCUMENT RETRIEVAL SYSTEM", "", "", "", ],
["ON SPOT BY BOOKING NUMBER","link:onspot.html", "", "", "", "ON SPOT BY BOOKING NUMBER", "", "", "", ],
["CUSTOMER PORTALS","link:portals.html", "", "", "", "CUSTOMER PORTALS", "", "", "", ],
["EDI","link:edi.html", "", "", "", "ELECTRONIC DATA INTERCHANGE", "", "", "", ],
["GPS TRACKING","link:gps.html", "", "", "", "GPS TRACKING", "", "", "", ],
["WMS","link:wms.html", "", "", "", "WAREHOUSE MANAGEMENT SYSTEM", "", "", "", ],
];
You should also set
var bselectedItem=0;
to select your first item by default in that case.