CodeThatTab - Using XML Example

CodeThatTab - Using XML Example

<style> 	    
 	.over{font-family:MS Sans Serif;font-size:11px;color:#000000; 
 	background-color:#f5f5f1; background-image:url(img/tabc.gif);
 	background-repeat:no-repeat;}
 	.def {font-family:MS Sans Serif;font-size:11px;color:#000000;  
 	background-color:#f5f5f1;background-image:url(img/tabd.gif);
 	background-repeat:no-repeat;}                                                                  
 	.curr{font-family:MS Sans Serif;font-size:11px;color:#000000; 
 	background-color:#fcfcfe;background-image:url(img/tabc.gif);
 	background-repeat:no-repeat;}
	.hint{font-family:MS Sans Serif; font-size:11px;color:#000000;
	background-color:#fcfcfe;}
 </style>
 
 <form>  
 <input type="hidden" name="def" value='<php
xml version = "1.0"
?>
 <tabDef>
  <x>10</x>
  <y>10</y>
  <width>400</width>
  <height>100</height>
  <offset>2</offset>
  <spacing>3</spacing>
  <padding>10</padding>
  <layout>top</layout>
  <css>def</css>
  <cssover>over</cssover>
  <csscurr>curr</csscurr>
  <csshint>hint</csshint>
  <border>
   <color>#91a7b4</color>
   <width>1</width>
  </border>
  <borderonlyhint>1</borderonlyhint>  
  <tabs>
    <text>Tab0</text>
    <hint>Tab HINT 0</hint>  
  </tabs>
  <tabs>
    <text>Tab1</text>
    <hint>Tab HINT 1</hint>  
  </tabs>  
 </tabDef>'>
 </form> 
  
 <script language="javascript1.2">
<!--
var xmlTab = new CXMLTree (CodeThat.findElement("def").value);
var def = xmlTab.toObject();
var ts = new CTabSet("ts");
ts.create(def.tabDef); 
//-->
</script>