@Brendon
Vbscript Hta Tabs for u
<html>
<head>
<title>Tabs.hta</title>
<HTA:Application
ID = "HTA"
ApplicationName = "Tabs"
Border = "thin"
BorderStyle = "normal"
Caption = "yes"
ContextMenu="yes"
Icon = ""
InnerBorder="no"
MaximizeButton = "yes"
MinimizeButton = "yes"
Navigable="yes"
Scroll="yes"
SrollFlat="no"
Selection="yes"
ShowInTaskBar = "yes"
SingleInstance = "yes"
SysMenu = "yes"
Version = "1.0"
>
<script language="VBscript">
Dim sItem
Dim aPanels
Dim el
Dim iPanelCount
iPanelCount = 6
Private Sub Panel(tab)
For i = 1 To iPanelCount
If i = tab Then
document.getElementById("tab" & i).className = "tabs tabsSelected"
document.getElementById("panel" & i).style.display = "block"
Else
document.getElementById("tab" & i).className = "tabs tabsNotSelected"
document.getElementById("panel" & i).style.display = "none"
End If
Next
End Sub
Sub AddCheck
strHTML = panelContents2.InnerHTML
strHTML = strHTML & "<input id=" & intCheckCount & " type=" & Chr(34) & "CheckBox" & Chr(34) & _
" name=" & Chr(34) & "chkEnabled" & Chr(34) & "value= " & Chr(34) & "CheckBox" & intCheckCount & Chr(34) & " onClick=" & Chr(34) & _
"NewCheckSubroutine" & Chr(34) & ">" & " <BR>"
panelContents2.InnerHTML = strHTML
End Sub
</script>
<style type="text/css">
body,td,th { font-family:Arial }
.head { font-size:110%; font-weight:bold }
.panel {
background-color: white;
border: solid 1px black;
height: 410px;
padding: 5px;
position: relative;
width: 650px;
z-index: 0;
}
.tabs {
border-collapse: collapse;
color: black;
cursor: pointer;
cursor: hand;
font-family: arial;
font-size: 9pt;
font-weight: bold;
margin-top: 4px;
padding: 2px 4px 0px 4px;
position: relative;
text-align: center;
text-decoration: none;
z-index: 1;
}
.tabsNotSelected {
background-color: wheat;
border: solid 1px black;
}
.tabsSelected {
background-color: white;
border-color: black black white black;
border-style: solid solid solid solid;
border-width: 1px 1px 1px 1px;
}
</style>
</head>
<body>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="650">
<tr valign="top">
<td align="right" colspan="2">
<span class="head">Tabs in HTA!</span>
<br>
</td>
</tr>
<tr valign="top">
<td colspan="2">
<span class="tabs tabsSelected" id="tab1" onclick="panel(1)">Tab 1</span>
<span class="tabs tabsNotSelected" id="tab2" onclick="panel(2)">Tab 2</span>
<span class="tabs tabsNotSelected" id="tab3" onclick="panel(3)">Tab 3</span>
<span class="tabs tabsNotSelected" id="tab4" onclick="panel(4)">Tab 4</span>
<span class="tabs tabsNotSelected" id="tab5" onclick="panel(5)">Tab 5</span>
<span class="tabs tabsNotSelected" id="tab6" onclick="panel(6)">Tab 6</span>
<div class="panel" id="panel1" style="display:block">
<hr color="black">
<table border="0" width="100%">
<tr valign="top">
<td>
<span class="head">This is Tab 1.</span>
<br><br>
TAB 1
</td>
</tr>
</table>
</div>
<div class="panel" id="panel2" style="display:none">
<hr color="black">
<table border="0" width="100%">
<tr valign="top">
<td>
<span id="panelContents2" class="head">This is Tab 2.</span>
<br><br>
TAB 2
</td>
</tr>
</table>
</div>
<div class="panel" id="panel3" style="display:none">
<hr color="black">
<table border="0" width="100%">
<tr valign="top">
<td>
<span class="head">This is Tab 3.</span>
<br><br>
TAB 3
</td>
</tr>
</table>
</div>
<div class="panel" id="panel4" style="display:none">
<hr color="black">
<table border="0" width="100%">
<tr valign="top">
<td>
<span class="head">This is Tab 4.</span>
<br><br>
TAB 4
</tr>
</table>
</div>
<div class="panel" id="panel5" style="display:none">
<hr color="black">
<table border="0" width="100%">
<tr valign="top">
<td>
<span class="head">This is Tab 5.</span>
<br><br>
TAB 5
</td>
</tr>
</table>
</div>
<div class="panel" id="panel6" style="display:none">
<hr color="black">
<table border="0" width="100%">
<tr valign="top">
<td>
<span class="head">This is Tab 6.</span>
<br><br>
TAB 6
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>