(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 50 Inspirational and Beautiful HTML Themes Collection AMP Mobile Page Template Review  |  Mobile-friendly Web Page Themes Review  |  Top 54 Brand New jQuery Themes List  |  Top 41 Wonderful CSS3 Templates Collection  |  Top 53 Killer HTML Templates List  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | AI Website Builder | AI Website Maker | Free AI Website Generator | Website Generator AI