1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>DHTML TabBar sample. dhtmlXTabBar - Nested TabBars</title>
10
.{font-family:arial;font-size:12px}
11
h1 {cursor:hand;font-size:16px;margin-left:10px;line-height:10px}
12
xmp {color:green;font-size:12px;margin:0px;font-family:courier;background-color:#e6e6fa;padding:2px}
14
background-color:lightgrey;
20
<div class="hdr">DHTML JavaScript Tabbar samples</div>
21
<h1>Nested TabBars</h1>
22
<link rel="STYLESHEET" type="text/css" href="../css/dhtmlXTabBar.css">
23
<script src="../js/dhtmlXCommon.js"></script>
24
<script src="../js/dhtmlXTabbar.js"></script>
25
<a href='javascript:void(0)' onclick='doIt()'>Attach content to TabBar</a>
30
<div id="a_tabbar" style="width:390px; height:390px;"/>
32
<td><div id='html_01' style='padding:5px;'><div id='html_1' style="width:300px; height:340px;"></div></div></td>
33
<td><div id='html_02' style='padding:5px;'><div id='html_2' style="width:300px; height:340px;"></div></div></td>
38
<div id="a_tabbar" style="width:400;height:100"></div>
40
tabbar=new dhtmlXTabBar("a_tabbar","top");
42
tabbar2=new dhtmlXTabBar("html_1","right");
44
tabbar3=new dhtmlXTabBar("html_2","bottom");
46
tabbar.setContent("a1","html_01");
47
tabbar.setContent("a2","html_02");
48
tabbar.setContentHTML("a3","<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.");
52
tabbar=new dhtmlXTabBar("a_tabbar","top");
53
tabbar.setImagePath("../imgs/");
55
tabbar.setSkinColors("#FCFBFC","#F4F3EE");
56
tabbar.addTab("a1","Tab 1-1","100px");
57
tabbar.addTab("a2","Tab 1-2","100px");
58
tabbar.addTab("a3","Tab 1-3","100px");
59
tabbar.setTabActive("a1");
62
tabbar2=new dhtmlXTabBar("html_1","right");
63
tabbar2.setImagePath("../imgs/");
65
tabbar2.setSkinColors("#FCFBFC","#F4F3EE");
66
tabbar2.addTab("a11","Tab 1-1","100px");
67
tabbar2.addTab("a21","Tab 1-2","100px");
68
tabbar2.addTab("a31","Tab 1-3","100px");
69
tabbar2.setTabActive("a11");
70
tabbar2.setContentHTML("a11","1-11");
71
tabbar2.setContentHTML("a21","1-21");
72
tabbar2.setContentHTML("a31","1-31");
75
tabbar3=new dhtmlXTabBar("html_2","bottom");
76
tabbar3.setImagePath("../imgs/");
78
tabbar3.setSkinColors("#FCFBFC","#F4F3EE");
79
tabbar3.addTab("a12","Tab 1-1","100px");
80
tabbar3.addTab("a22","Tab 1-2","100px");
81
tabbar3.setTabActive("a12");
82
tabbar3.setContentHTML("a12","2-12");
83
tabbar3.setContentHTML("a22","2-22");
87
tabbar.setContent("a1","html_01");
88
tabbar.setContent("a2","html_02");
89
tabbar.setContentHTML("a3","<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.");
93
<div id="out_zone"></div>
94
<p><a href="http://www.scbr.com/docs/products/dhtmlxTabbar/index.shtml" style="font-weight:bold;">Go to the dhtmlxTabbar main page</a> or <a href="javascript:self.close()">Close this page</a></p>