Recent Questions
Q: When using the Deluxe-Tabs, the second tab seems to be the first selected tab when displaying tabs in a page. Is there a way to set the default tab showing on a page load?
A: You should use the following parameter:
var bselectedItem = 3;
Where 3 is the number of your menu item from the var bmenuItemsparameter.
var bmenuItems =
[
["Mac Tab 1", "content1"],
["Mac Tab 2", "content2"],
["Mac Tab 3", "content3"],
["Mac Tab 4", "content4"], // selected tab
];
The ID of the item starts with 0.
Try that.
Q: No matter where I paste the script in the html for the drop down menu I created, it shows up at the top left corner of the page.
I would like it to go below the blue banner at the top of the page.
Please advise as to what I am doing wrong.
A: Now you're using absolute position for the menu:
var absolutePos=1;
var posX="10px";
var posY="10px";
Try to use relative position
var absolutePos=0;
var posX="10px";
var posY="10px";
Q: How do I disable the menu link for the page that is currently being displayed? I don’t the menu item removed, I just want the link to be inactive and possibly a different color.
A: To disable items you should set the target parameter to "_".
Unfortunately, Deluxe Menu doesn't have such a feature.
You should write your own code, for example, on PHP.
You can try to use the following function
function disable() {
dm_ext_changeItem(1, 1, 1, ["", "", "", "", "", "_"]);
}
to disable your items.
The example you can find on our site
http://www.deluxe-menu.com/dynamic-functions-sample.html
Q: I need to set individual itemtargets for a number of items in the navigation bar menu...
A: You can set target parameter for all items:
var itemTarget="_blank";
or
var itemTarget="main";
where main - is the name of the main frame where you want to open the link
or for each item individually:
["Home","testlink.html", "", "", "", "_blank", "", "", "", "", "", ],
...
["Home","testlink.html", "", "", "", "main", "", "", "", "", "", ],