<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>DHTML TabBar sample. dhtmlXTabBar - Nested TabBars</title>
<link rel="STYLESHEET" type="text/css" href="../css/dhtmlXTabBar.css"/>
<script type="text/javascript" src="../js/dhtmlXCommon.js"></script>
<script type="text/javascript" src="../js/dhtmlXTabbar.js"></script>
<style type="text/css">
body { font-family:arial;font-size:12px; font-size:12px}
h1 {cursor:pointer;font-size:16px;margin-left:10px;line-height:10px}
xmp {color:green;font-size:12px;margin:0;font-family:courier;background-color:#e6e6fa;padding:2px}
div.hdr{
background-color:silver;
margin-bottom:10px;
padding-left:10px;
}
</style>
</head>
<body>
<div class="hdr">DHTML JavaScript Tabbar samples</div>
<h1>Nested TabBars</h1>
<a href='javascript:void(0)' onclick='doIt()'>Attach content to TabBar</a>
<br/><br/>
<table>
<tr>
<td>
<div id="a_tabbar" style="width:390px; height:390px;"/>
</td>
<td><div id='html_01' style='padding:5px;'><div id='html_1' style="width:300px; height:340px;"></div></div></td>
<td><div id='html_02' style='padding:5px;'><div id='html_2' style="width:300px; height:340px;"></div></div></td>
</tr>
</table>
<hr/>
<xmp>
<div id="a_tabbar" style="width:400px;height:100px"></div>
<script type="text/javascript">
tabbar=new dhtmlXTabBar("a_tabbar","top");
...
tabbar2=new dhtmlXTabBar("html_1","right");
...
tabbar3=new dhtmlXTabBar("html_2","bottom");
...
tabbar.setContent("a1","html_01");
tabbar.setContent("a2","html_02");
tabbar.setContentHTML("a3","<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.");
</script>
</xmp>
<script type="text/javascript">
tabbar=new dhtmlXTabBar("a_tabbar","top");
tabbar.setImagePath("../imgs/");
tabbar.setSkinColors("#FCFBFC","#F4F3EE");
tabbar.addTab("a1","Tab 1-1","100px");
tabbar.addTab("a2","Tab 1-2","100px");
tabbar.addTab("a3","Tab 1-3","100px");
tabbar.setTabActive("a1");
tabbar2=new dhtmlXTabBar("html_1","right");
tabbar2.setImagePath("../imgs/");
tabbar2.setSkinColors("#FCFBFC","#F4F3EE");
tabbar2.addTab("a11","Tab 1-1","100px");
tabbar2.addTab("a21","Tab 1-2","100px");
tabbar2.addTab("a31","Tab 1-3","100px");
tabbar2.setTabActive("a11");
tabbar2.setContentHTML("a11","1-11");
tabbar2.setContentHTML("a21","1-21");
tabbar2.setContentHTML("a31","1-31");
tabbar3=new dhtmlXTabBar("html_2","bottom");
tabbar3.setImagePath("../imgs/");
tabbar3.setSkinColors("#FCFBFC","#F4F3EE");
tabbar3.addTab("a12","Tab 1-1","100px");
tabbar3.addTab("a22","Tab 1-2","100px");
tabbar3.setTabActive("a12");
tabbar3.setContentHTML("a12","2-12");
tabbar3.setContentHTML("a22","2-22");
function doIt(){
tabbar.setContent("a1","html_01");
tabbar.setContent("a2","html_02");
tabbar.setContentHTML("a3","<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.");
}
</script>
<br/><br/>
<div id="out_zone"></div>
<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>
</body>
</html>