Loading content from XML



Sampled by JavaScriptBank.com

<div id="a_tabbar" style="width:400;height:100"></div> <script> tabbar=new dhtmlXTabBar("a_tabbar","top"); tabbar.setImagePath("../imgs/"); tabbar.loadXML("tabs.xml"); </script> ---------tabs.xml--------- <?xml version="1.0"?> <tabbar> <row> <tab id="a1" width='200px' selected="1">Tab 1-1 <content> <![CDATA[<img src='imgs/page_a.gif'>]]> </content> </tab> <tab id="a2" width='200px'>Tab 1-2 <content> <![CDATA[<img src='imgs/page_b.gif'>]]> </content> </tab> </row> </tabbar>

Go to the dhtmlxTabbar main page or Close this page




Over 2000+ free Javascript
at JavaScriptBank.com Website