Tell us javascript code to select or highlight the tab and sub tab in javascript tabs navigation
Return to Recent Questions
Q:
Tell us javascript code to select or highlight the tab and sub tab in javascript tabs navigation.
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>
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 22, 2006 - How to call the function in my java script menu?
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Oct 20, 2006 - Can you let me know, if javascript moving menu supports search engine friendly code?
- Oct 29, 2006 - When I purchse your javascript select menu, does this include any future updates?
- Nov 19, 2006 - How to display my javascript top menu without a border, but my subitems all have a border.
- Nov 28, 2006 - Do I need any additional loaded software using the javascript select menu?
- Dec 03, 2006 - expandable menu doesn’t work in Firefox or Netscape. It works fine in Internet Explorer.
- Dec 16, 2006 - Is there a way to keep global cool navigation image highlighted?
- Dec 22, 2006 - I'm hoping that the graphic would appear rather than a colored cell in menu samples.
- Jan 07, 2007 - Some graphic files need to draw the top-level horizontal menu bar are missing.
|