What do you recommend for "remembering" the tab in the js tab menu?
Return to Recent Questions
Q:
What do you recommend for "remembering" the tab in the js tab menu, so that when the page reloads the correct tab is highlighted.
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=^lt;?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 02, 2006 - Can I show / hide the javascript floating menu .
- Sep 18, 2006 - Does the js menu work to load pages into an iframe?
- Sep 22, 2006 - Where do I add my "blahblah.htm" page links in js menu?
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Sep 30, 2006 - How can I open the link in a new window with your DHTML MENU?
- Oct 06, 2006 - Where I can find data.js file for tree javascript menu?
- Oct 30, 2006 - I don't see on my website dhtml mouseover menu that I saw on my local machine.
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Nov 24, 2006 - How do I make the css submenu appear over the adjoining frame?
- Nov 29, 2006 - I am still struggling with multiple menus js on one page.
- Dec 04, 2006 - With the licensed .js files of menu dhtml the status bar on IE shows "Error on page".
|