ÓÃjavascript´úÂëÒì²½»ñÈ¡xmlÖеÄÖµ
ÈçÌ⣺
²Î¿¼http://topic.csdn.net/u/20090912/12/af0562a2-6869-48b8-a1a4-bc165c02fa4d.html ÖÐÎҵĻظ´ °ÑxmlReportData.async = "false"; ¸Ä³ÉxmlReportData.async = "true";¾ÍÊÇÒì²½ »òÕßhttp://topic.csdn.net/u/20090911/13/afedae08-8277-47d0-b481-2d1b27d49d63.html ÖÐÎҵĻظ´..ÒýÓà Index.htmlÎļþ: HTML code <scriptlanguage="javascript">var xmlDoc;function initialize() {if(window.ActiveXObject) { xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.onreadystatechange=function() {if(xmlDoc.readyState==4) { handleXmlDoc(); } } xmlDoc.load("data.xml"); }elseif(document.implementation&&document.implementation.createDocument) { xmlDoc=document.implementation.createDocument('','',null); xmlDoc.onload=handleXmlDoc; xmlDoc.load("data.xml"); } }function handleXmlDoc() {var root=xmlDoc.documentElement;var info=root.getElementsByTagName("info")[0]; alert(info.getAttribute("type"));for(var
Ïà¹ØÎÊ´ð£º
<form id="form1" runat="server"> <div> <script type="text/javascript"> function oo(a){ document.getEleme ......
ÎÊÌâÃèÊöÈçÏ£º ÓÃC#¿ª·¢µÄActiveXǶÈëÍøÒ³ÖУ¬¸ÃActiveXÖÐÓÐÒ»¸ö°´Å¥button1.ÏÖÔÚҪʹµÃÓû§µ¥»÷ÁËbutton1ºóʵÏÖÒ³ÃæÌøתµÄ¹¦ÄÜ£¬¼´Óɵ±Ç°µÄ1.htmÌøתµ½2.htm¡£ Î ......
<script> with(document) { for(var i=0;i <streams.length;i++) writeln(" <p> <a href=# onclick=change(streams[i].url)>"+streams[i].name+" </a> < ......