Recent Questions
Q: I have recenlty purchased Deluxe-Menu. I create the items through php. All works fine but the vista style javascript menu button do not display.
A: You should assign individual style for your top javascript menu buttons:
["ELECTRICAL","http://www.domain.com/points/section.php?xSec=76&jssCart=b0d3c67fa5c15ec029c138688b68a91b", "","","","","0","","","","",],
["GREEN PRODUCTS","http://www.domain.com/points/section.php?xSec=62&jssCart=b0d3c67fa5c15ec029c138688b68a91b", "","","","","0","","","","",],
["DIY","http://www.domain.com/points/section.php?xSec=23&jssCart=b0d3c67fa5c15ec029c138688b68a91b", "","","","","0","","","","",],
Q: How can I have the sub tab option that initiated the action highlighted once the new page is reloaded? I want to highlight the tab which is done with 'bselectedItem', please tell me about the sub-tab option.
A: See you cannot create subitems in
var tabMode=0;
it is not correct.
You should set
var tabMode=1;
The following parameters set the pressed items for top items andsubitems:
var bselectedItem=0; //top items
var bselectedSmItem=2; //subitems
where 0,1,2... is the index of the item in bmenuItems.
- delete var bselectedItem=1; and var bselectedSmItem=2; parameters from your data file
- set correct parameters on each page before you call data file, forexample:
<noscript><a href="http://deluxe-tabs.com">Javascript Menu by Deluxe-Tabs.com</a></noscript>
<script type="text/javascript" src="menudir/dtabs.js"></script>
<script type="text/javascript"> var bselectedItem=3;
var bselectedSmItem=5; </script>
...
<script type="text/javascript" src="menudir/data.js"></script>
Q: Is there a way to create a vertical menu in which the sub menus "fly out" to the left of the main menu?
A: Yes, it is possible.
To create vertical menu you should set
var isHorizontal=0;
Why of showing submenu you can set so:
var smViewType=2;
Q: How do I highlight the current tab in a hover tab menu?
A: This Tabs menu can save pressed item automatically within1 page only.
If you open another page, the menu can't remember presseditem.
You should do that manually using Javascript and menu parameters
( var bselectedItem and var var bselectedSmItem) or using any server-side script (php, asp, etc.)
Deluxe Tabs doesn't support API functions which can return theselected tab.
If your site is written on PHP you can set "bselectedItem" and "varbselectedSmItem" parameters based on your link beforeyou call your data file.
For example, move "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>
Try that.