Recent Questions Ext Tree Columntree Xmltreeloader
Q: I have configured the Deluxe Tabs menu for the purpose that this menu will form the basis of a website's navigation, once clicked a tab it will take you to the appropriate page.
However one problem I have faced is that menu, regardless of current webpage will display the same active/ selected menu item, having looked in the menu parameters I know that the following set the positions of the selected tab :
* var bselectedItem=0;
* var bselectedSmItem=0;
Is there anyway of selecting the dhtml tab menu index location according to what webpage you are on? On your website it shows an example of a PHP server-side script, however is there an example of this in ASP ?
A: No, unfortunately we don't have such examples in ASP.
Deluxe Tabs doesn't support API functions which can return theselected tab also.
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>Q: Is it possible, for instance, to call dm_init multiple times in the list menu java? If so, do you have an example?
A: Yes, you can call dm_init(); function multiple times (for example youcan call several data files, or move menuItems array and dm_init();function into your page directly) to have multiple menus on your page.
Q: Is this transparent feature there for individual submenu styles or for individual menu items in scrolling menu? I want that.
A: See, you can use "transparent" value instead of any color in the mainmenu parameters and in Individual styles.
var menuBackColor="transparent";
var menuBorderColor="transparent";
var itemBackColor=["transparent","transparent"];
var itemBorderColor=["transparent","transparent"];
var moveColor="transparent";
var shadowColor="transparent";
var itemStyles = [
["itemBackColor=transparent,transparent","itemBorderColor=transparent,transparent"],
];
var menuStyles = [
["menuBackColor=transparent","menuBorderColor=transparent"],
];
Q: Can I request something for your next version please.....individual javascript list menu border colours, I think it would then be possible to create a dropped shadow effect perhaps :)
A: You can use different colors for each border side now.
For example:
var menuBorderColor="#C0AF62 #4949E0 #000000 #B31E1E";top right bottom left