(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    I am trying to set a default tab in the div tab menu to be selected when a window opens...

Return to Recent Questions


Q: I am getting stuck with trying to set a default tab in the div tab menu to be selected when a window opens...
What I've been trying to do is changing this line here :

var bselectedItem=0;

At 0 (default) it has the first tab selected. Any other number and no tabs are selected.
Is there a setting somewhere else that I am missing? A: 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= var bselectedSmItem= </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&tg;







Return to Recent Questions

Related:
Best Website Builder for podcasts and affiliate marketing Website Builder for Beginners, Bloggers, Writers, IT Companies  |  Website Builder for portfolio and SEO  |  Website Builder for Online Stores, Restaurants, Musicians, Real Estate  |  Website Builder for nonprofits and therapists  |  Best Website Builder for Education, Software Companies, Designers, Videos  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Generator | AI Website Maker | Free AI Website Generator | AI web design generator | AI website design generator