DHTML JavaScript Tabbar samples

Navigation in TabBar


<div id="a_tabbar" style="width:400px;height:100px"></div> <script type="text/javascript"> tabbar=new dhtmlXTabBar("a_tabbar","top"); tabbar.setImagePath("imgs/"); tabbar.loadXML("tabs1.xml"); ... tabbar.goToPrevTab(); // navigate to the previous tab tabbar.goToNextTab(); // navigate to the next tab var id=tabbar.getActiveTab(); // returns id of currently active tab tabbar.setLabel('new'); // set label of tab </script>

Go to the dhtmlxTabbar main page or Close this page