BUT the pressed tab is not be marked in my menu popup..
Return to Recent Questions
Q:
What I have to do for the following problem:
When I press a tab, the new site will be load into the browser.
Great! BUT the pressed button is not be marked in my menu popup. Always the Tab 1 is
blue. What's wrong??
A:
This Tabs menu can save pressed item automatically within
1 page only. If you open another page, the menu popup can't remember pressed
item. You should do that manually using Javascript and menu parameters
(var bselectedItem and var var bselectedSmItem) or using any server-side script (php, asp, etc.)
Deluxe Tabs doesn't support API functions which can return the
selected tab.
If your site is written on PHP you can set "bselectedItem" and "var
bselectedSmItem" parameters based on your link before
you call your data file.
For example, move "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 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:
- March 21, 2009 - I am trying to get my submenu to be all black in my menu popup...
- Apr 06, 2009 - Can the link items NOT open a new window in the menu popup?
- Apr 24, 2009 - I have an errors on the menu popup in HTML application with 4 iframes.
- May 11, 2009 - I would like to have each sub menu with width 100px in my Menu popup.
- May 29, 2009 - Will this menu popup work for us, as we use IFrames and Frameset?
- Jun 15, 2009 - Is it possible to change the position of a menu item in the menu popup?
- Jul 03, 2009 - Does your menu popup compatible with Namo WebEditor 2006?
- Jul 19, 2009 - When I have tried to look my menu popup in the browser I have the active x message
- Aug 06, 2009 - When running menu popup with IE or Firefox, the background is transparent, why?.
- Aug 23, 2009 - My body onload function is blocked with the new version of menu popup.
- Sep 09, 2009 - Is it possible to change colors for the menu popup and the submenus in the menu popup?
|