Recent Questions
Q: Could you please explain how to increase the height of our javascript menu submenu links to 18 or 20 px each?
A: You can create Individual submenu style and assign it to the firstitem in each submenu.
var menuStyles = [
["menuBackColor=transparent","menuBorderWidth=1","itemSpacing=1","itemPadding=0px 5px 0px 5px"],
["itemPadding=5px 2px 5px 2px"],
];
var menuItems = [
["Advanced Taser Guns","http://www.defenseproducts101.com/tasers.html", "", "", "", "", "0", "", "", "", "", ],
["|Advanced Taser Guns","http://www.defenseproducts101.com/tasers.html", "", "", "", "", "", "1", "", "", "", ], //assign style
Q: With menu tabs, I'm trying to dynamically set the bselectedItem parm, using php. If I set bselectedItem to anything other than 0, the submenu goes away and the main html tab javascript is not highlighted.
If I set to 0, everything works.
A: See, if you use Tab Mode
var tabMode = 1;
var bselectedItem = 0; //main items
var bselectedSmItem = -1; //submenus
So you should set:
var bselectedItem = 0; //main items (0;7;14;21;25)
var bselectedSmItem = -1; //submenus (1;2;3;4;5....)
Q: I have setup some tabs on a site that I am designing and for some reason when i click on a tab and it links to another page it automatically highlights the first tab in the row.
I have triedfiddling with it and have not been able to figure it out. Can someone point me in the right direction to have the correct tab selected in the css tab menu after i click it and goto the page.
A: Deluxe Tabs doesn't support API functions which can return theselected tab.
You can set "bselectedItem" and " var bselectedSmItem" parametersbased on your link before you call your data file.
For example, move " var bselectedItem" and " var bselectedSmItem" parametersfrom your data file to your code.
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem=<?php echo $seltabs; ?>;
var bselectedSmItem=<?php echo $selsmtabs; ?>
</script>
<SCRIPT src="data.js" type=text/javascript></SCRIPT>
</TD>
You should define seltabs and selsmtabs using server side script.
You can also set it on every page before you call data.js file, forexample:
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem=4;
var bselectedSmItem=3;
</script>
<SCRIPT src="data.js" type=text/javascript></SCRIPT>
</TD>
</span>
Q: We are having a bit of trouble with your menu, when you go down into a sub menu, and then back to the item that called it, the sub menu expands.
For example, if i have this menu structure
File
     New
     Save
     Exit
When i MouseOver New and then MouseOver File, the menu containing New, Save and Exit will grow. If i keep doing this then the menu will continue to expand horizontally.
I know its something we have done, since there doesn't seem to be a problem on your site, its just i don't know what it is
A: Rozi, we heard about such problems. I suppose that you see such effectin IE.
Please, try not to use shadow in the menu.
Please, set this parameter:
var shadowLen=0;
We'll correct this bug soon.
Try also write all units in "px", for example:
var itemPadding = "3px";