Is there anyway of selecting the dhtml tab menu index location according to what webpage you are on?
Return to Recent Questions
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 the
selected tab also.
You can set "bselectedItem" and "var bselectedSmItem" parameters
based on your link before you call your data file.
For example, move "var bselectedItem" and "var bselectedSmItem" parameters
from 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, for
example:
<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>
Return to Recent Questions
Related:
- Sep 16, 2006 - I need to be able to highlight the selected menu item of the html tree menu.
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Oct 29, 2006 - When I purchse your javascript select menu, does this include any future updates?
- Oct 30, 2006 - I don't see on my website dhtml mouseover menu that I saw on my local machine.
- Nov 05, 2006 - The font color doesn't change when I roll over the dhtml side menu
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Nov 23, 2006 - It is possible to have context menu work with your tree menu dhtml?
- Nov 25, 2006 - If a user selects vertical menu in the upper frame he get the menu that is associated with...
- Nov 28, 2006 - Do I need any additional loaded software using the javascript select menu?
|