可是大富翁现在的解释方式为:
function load_xml(obj, xmlobj, xslobj) {
try {
hiddenxml = xmlobj.innerHTML;
hiddenxsl = xslobj.xml;
var myxml = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
myxml.async = false;
myxml.loadXML(hiddenxml);
var myxsl = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
myxsl.async = false;
myxsl.loadXML(hiddenxsl);
html = myxml.transformNode(myxsl);
obj.innerHTML = html;
title = myxml.selectSingleNode("/DFWML/@title");
if (title!=null)do
cument.title = title.text;
}
catch (exception) {
alert(exception.description);
window.location.href="/default.htm#error";
//obj.innerHTML = exception.description;
}
}
用的是MSXML,估计LINUX用户肯定不行,至少,LINUX上没有COM吧