When I click between tabs, only one tab remains in its active state for a dhtml tab navigation..
Return to Recent Questions
Q:
When I click between tabs, only one tab remains in its active state for a dhtml tab navigation.
Why isn't the tab changing to look "active" to reflect the page that it's on?
Please let me know where this setting is.
A:
Deluxe Tabs doesn't support API functions which can return the
selected tab.
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>
Try that.
Return to Recent Questions
Related:
- Aug 28, 2006 - Horizontal at level 1, Horizontal at level 2, then vertical?
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Sep 29, 2006 - I tried to use javascript function with the "Title item" of my javascript tree view.
- Oct 28, 2006 - Subitems of the mouseover menu don't close when the mouse goes away...
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Nov 23, 2006 - Can we right justify the secondary javascript navbar?
- Dec 10, 2006 - On IE for Windows, the javascript floating window disappear as I roll over them
- Dec 27, 2006 - We want to know if we can make the background on your menu html code transparent?
- Jan 13, 2007 - I want my simple drop down menu appears centered at the top the page. Is it possible?
- Jan 20, 2007 - Where can I change the state of Vista1 dhtml buttons?
- Jan 29, 2007 - Is this java script drop down menu floatable?
|