I need current page highlighted on javascripts tab menu.
Return to Recent Questions
Q:
I need current page highlighted on javascripts tab menu.
what I do the change on data.js file.
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; ?>;
</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 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Jan 29, 2007 - Is this java script drop down menu floatable?
- Feb 06, 2007 - We use IFrames and Frameset. Will Deluxe-Menu and Deluxe menu tabs work for us?
- March 02, 2007 - Is there a way to establish a setting such that when a toggle menu Item is CLICKED
- March 15, 2007 - In my dynamic html menu I'm getting an error - Error: 'floatable' is undefined
- March 25, 2007 - I can not figure out how to fix the tabbed menu from going off the page in Mozilla
- April 14, 2007 - I want to open links in a new window in the website tabs menu?
- April 21, 2007 - I need to be able to execute some javascript when I click on a javascript menu tab
- May 02, 2007 - Is there any way can we display sublevel menu items on mouse over in dhtml tab menu
|