How do you enable or configure settings so that on default a specific "Tab" is always set to on or shown as the preload tab?
Return to Recent Questions
Q:
Question: How do you enable or configure settings so that on default a
specific "Tab" is always set to on or shown as the preload tab, I
have a eStore page where I would like to insure that a specific Tab is
always shown on default and all others are hidden on the first revealing
of the page? Can you help?
A:
Use the following parameters to set the selected top and submenu items:
var bselectedItem = 0;
var bselectedSmItem = 0;
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 22, 2006 - How to call the function in my java script menu?
- Oct 20, 2006 - Can you let me know, if javascript moving menu supports search engine friendly code?
- Oct 22, 2006 - Why I now have double drag menus and how to correct?
- Nov 19, 2006 - How to display my javascript top menu without a border, but my subitems all have a border.
- Dec 03, 2006 - expandable menu doesn’t work in Firefox or Netscape. It works fine in Internet Explorer.
- Dec 22, 2006 - I'm hoping that the graphic would appear rather than a colored cell in menu samples.
- Jan 05, 2007 - In Delux Tuner I can not find how to make menus multi-level or multi-column
- Jan 07, 2007 - Some graphic files need to draw the top-level horizontal menu bar are missing.
- Jan 09, 2007 - I'm still can't understand how to make drop down menus
- Jan 14, 2007 - I can't however find the option in your menu makers to move submenus closer together
- Jan 15, 2007 - Is there a way to show a link in the menu drop down if there is no JavaScript?
|