Is there anyway of selecting index location of dhtml tab according to what webpage you are on ?
Return to Recent Questions
Q:
Is there anyway of selecting index location of the dhtml tab according to what webpage you are on ?
A:
Deluxe Tabs doesn't support API functions which can return the
selected tab aslo.
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; ?&g5t;;
</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>
</TD>
Return to Recent Questions
Related:
- Sep 06, 2006 - The Items of the javascript tree view stay expanded in the same state.
- Oct 05, 2006 - Is it easy to incorporate your Menu into a website created on Front Page?
- Nov 05, 2006 - With the new version of javascript rollover menus, my body onload function is blocked.
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Nov 28, 2006 - I downloaded the trial version, but where to find the scroll menu javascript?
- Dec 15, 2006 - I can't see floating menubar on my test page only direct links...
- Dec 31, 2006 - I only want one sub-menu to have multi-columns in html dropdown menu.
- Jan 18, 2007 - Why can't I have more than 5 buttons in vista 1 html menu examples?
- Feb 03, 2007 - Is there some chance to use calling of JScript function from javascript hide menu?
- Feb 20, 2007 - We want to set a specific width for each item on top level of the jump menu code
- March 07, 2007 - Will I have issues with the key in hover menus if my site has multiple host headers
|