Y yclstudy Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-16 #1 在Html中用do M+Javascript 访问数据岛,如何实现? --解决问题者高分相送!
G gois Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-17 #2 <XML id="objXML" src="yourXML.xml"></XML> <XML id="objXSL" src="yourXSL.xsl"></XML> <script Language=JavaScript FOR="window" EVENT="onload"> showDIV.innerHTML = objXML.transformNode(objXSL); </SCRIPT> <HTML> <body> <div id="showDIV"></div> </body> </HTML>
<XML id="objXML" src="yourXML.xml"></XML> <XML id="objXSL" src="yourXSL.xsl"></XML> <script Language=JavaScript FOR="window" EVENT="onload"> showDIV.innerHTML = objXML.transformNode(objXSL); </SCRIPT> <HTML> <body> <div id="showDIV"></div> </body> </HTML>
J jsxjd Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-17 #3 非常正确,便干吗要分开,调整一下: <HTML> <body> <div id="showDIV"></div> <XML id="objXML" src="yourXML.xml"></XML> <XML id="objXSL" src="yourXSL.xsl"></XML> <script Language=JavaScript FOR="window" EVENT="onload"> showDIV.innerHTML = objXML.transformNode(objXSL); </SCRIPT> </body> </HTML>
非常正确,便干吗要分开,调整一下: <HTML> <body> <div id="showDIV"></div> <XML id="objXML" src="yourXML.xml"></XML> <XML id="objXSL" src="yourXSL.xsl"></XML> <script Language=JavaScript FOR="window" EVENT="onload"> showDIV.innerHTML = objXML.transformNode(objXSL); </SCRIPT> </body> </HTML>