How do I keep the tab selected for the html vertical tabs when advancing to the next tab?
Return to Recent Questions
Q:
I am setting up a 3 tab script and each tab opens a new page but
the state of the tab selected reverts back to the default tab. How do I keep the tab selected for the html vertical tabs when advancing to the next tab (new page)?
A:
You should change the selected tab depending on the page you are now.
This Tabs menu can save pressed item automatically within
1 page only. If you open another page, the menu can't remember pressed
item. You should do that manually using Javascript and menu parameters
(var bselectedItem) or using any server-side script (php, asp, etc.)
Deluxe Tabs doesn't support API functions which can return the
selected tab.
So, you can set "bselectedItem" parameter based on your link before
you call data.js file.
For example, move "bselectedItem" parameter from data.js file to your
code.
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem=<?php echo $seltabs; ?>;
</script>
<SCRIPT src="data.js" type=text/javascript>
</SCRIPT>
</TD>
You should define seltabs using server side script.
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?
- Oct 21, 2006 - It appears that this javascript expand menu only supports IE (on the PC and Mac).
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Nov 20, 2006 - We need to have 2 javascript hover menu on one page.
- Nov 26, 2006 - How to keep my floating html menu in the centre of the page like <centre></centre>
- Dec 05, 2006 - I can not createPopup windows by clicking on a menu.
- Dec 11, 2006 - How to add the new items to the dhtml vertical menu without using two data.js files?
- Dec 23, 2006 - When I have tried to look my side menu bar in the browser it has the active x message
- Jan 09, 2007 - I'm still can't understand how to make drop down menus
- Jan 23, 2007 - Can I keep a submenu shown even when my mouse pointer is NOT over dhtml menu bar
|