XML Data Source XML就不多說了,在IE4.0中這樣使用: APPLET CODE="com.ms.xml.dso.XMLDSO.class" ID="xmldso" WIDTH="0" HEIGHT="0" MAYSCRIPT="true"> PARAM NAME="URL" VALUE="composer.xml"> /APPLET>
Internet Explorer 5以上可以這樣:
!--[if gte IE 5]> XML ID="xml1"> topic-info> page-type>reference/page-type> member-type>property/member-type> persistent-name>ACCESSKEY/persistent-name> runtime-name readable="1" writeable="1">accessKey/runtime-name> abstract>Sets or retrieves the accelerator key for the object./abstract> /topic-info> /XML> ![endif]-->
其中數(shù)據(jù)來源: OBJECT id="tdcComposers" CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"> PARAM NAME="DataURL" VALUE="http://msdn.microsoft.com/workshop/samples/author/databind/composer.csv"> PARAM NAME="UseHeader" VALUE="True"> PARAM NAME="TextQualifier" VALUE="'"> /OBJECT> 綁定的table TABLE datasrc=#tdcComposers> THEAD>TR STYLE="font-weight:bold"> TD>First/TD>TD>Last/TD>TD>Birth/TD>TD>Death/TD>TD>Origin/TD> /TR>/THEAD> TBODY> TR> TD>DIV datafld="compsr_first">/DIV>/TD> TD>DIV datafld="compsr_last">/DIV>/TD> TD>DIV datafld="compsr_birth">/DIV>/TD> TD>DIV datafld="compsr_death">/DIV>/TD> TD>DIV datafld="origin">/DIV>/TD> /TR> /TBODY> /TABLE> 這就是效果了: First Last Birth Death Origin Hector Berlioz 1803 1869 France Modest Moussorgsky 1839 1881 Russia Franz Liszt 1811 1886 France Antonio Vivaldi 1678 1741 Italy Johann Sebastian Bach 1685 1750 Germany Ludwig van Beethoven 1770 1827 Germany Wolfgang Amadeus Mozart 1756 1791 Austria Joseph Haydn 1732 1809 Germany Claude Debussy 1862 1918 France
還可以這樣用: SCRIPT Language="VBScript"> For Each objFld in rsAttendees.Fields document.write("The field name is " objFld.Name "BR>") document.write("The field value is " objFld.Value "BR>") Next /SCRIPT>