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:
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- March 08, 2007 - Which file(s) I must change to change the content of each tab in the tabs dhtml?
- May 02, 2007 - Is there any way can we display sublevel menu items on mouse over in dhtml tab menu
- May 20, 2007 - Is there any way through script to call the function in dhtml tabbed menu?
- May 24, 2007 - How I can add content below the dhtml tabs menu, like you have on your site?
- June 26, 2007 - The information on the first tab is appearing on every dhtml tab.
- Aug 25, 2007 - Do you have example of loading menu items from a sql database in java dhtml menu using ASP?
- Sep 15, 2007 - Where the content for each dhtml tab menu is imputed.
- Oct 03, 2007 - How I can write the changed dhtml pull down menu into a database?
- Oct 10, 2007 - I've got an xp style dhtml menue that I'm trying to place within a table
- Oct 17, 2007 - When I load a page with dhtml menu sample, the first tab is always highlighted
|