我有一个显示Flash内容的跟随者。问题是我可以在我的Chrome和Mozilla上查看它,但我无法在IE中查看它(在IE 8,9中尝试过)。我得到的是一个白色屏幕,当我右键单击时显示“未加载电影”。 我已经清除了缓存,重置IE,再次安装了闪存......做了一切......但它似乎没有用。是IE无法理解的部分代码吗?
此外,我可以在IE中看到youtube视频。我猜这个代码只有一些问题
embedAccountTree()在代码的最后部分是我猜的一些问题
<div id="flextree" style="height:300px"></div>
<script>
if (typeof XMLHttpRequest == "undefined") {
XMLHttpRequest = function() {
try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }
catch(e) {}
try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }
catch(e) {}
try { return new ActiveXObject("Msxml2.XMLHTTP"); }
catch(e) {}
try { return new ActiveXObject("Microsoft.XMLHTTP"); }
catch(e) {}
throw new Error("This browser does not support XMLHttpRequest.");
};
}
function getRowId(eventObj) {
return('%%%Row_Id%%%');
}
function Login(eventObj) {
var logincc = sso_login('%%%SSO Token%%%');
return( logincc );
}
function Logout(eventObj) {
var logoutcc = sso_logout();
return( logoutcc );
}
function sso_login(sso_token) {
ssotoken = encodeURIComponent(sso_token);
var pageroot = document.location;
pageroot = pageroot.toString();
pageroot = pageroot.substr(0, pageroot.indexOf('/', 10));
try {
var commandStr = '?command=ssologin&odSsoToken=' + ssotoken;
var oXMLHttpRequest = new XMLHttpRequest;
var wurl = pageroot + '/Services/Integration' + commandStr;
oXMLHttpRequest.open('GET', wurl, false);
oXMLHttpRequest.send(null);
return( oXMLHttpRequest.status );
} catch (e) { alert('Login Error: ' + e.message); return("FAIL"); }
}
function sso_logout() {
var pageroot = document.location;
pageroot = pageroot.toString();
pageroot = pageroot.substr(0, pageroot.indexOf('/', 10));
try {
var commandStr = '?command=logoff';
var oXMLHttpRequest = new XMLHttpRequest;
oXMLHttpRequest.open('GET', pageroot + '/Services/Integration' + commandStr, false);
oXMLHttpRequest.send(null);
return ( XMLHttpRequest.status );
} catch (e) { alert('Logout Error: ' + e.message); return("FAIL"); }
}
function invokeAjax( eventObj ) {
var soapAction = eventObj.soapAction;
var pageroot = document.location;
inSoap = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">';
inSoap += '<soapenv:Header/>';
inSoap += '<soapenv:Body>';
inSoap += eventObj.inSoap;
inSoap += '</soapenv:Body>';
inSoap += '</soapenv:Envelope>';
pageroot = pageroot.toString();
pageroot = pageroot.substr(0, pageroot.indexOf('/', 10));
try {
var oXMLHttpRequest = new XMLHttpRequest;
oXMLHttpRequest.open('POST', pageroot + '/Services/Integration', false);
oXMLHttpRequest.setRequestHeader('SOAPAction', '"'+soapAction+'"');
oXMLHttpRequest.setRequestHeader('Content-Type', 'text/xml');
oXMLHttpRequest.send(inSoap);
return oXMLHttpRequest.responseText;
}
catch (e) {
alert('Error: ' + e.message);
return( '' );
}
}
**function embedAccountTree(rowid,lang)
{
var embed = "";
embed = embed + '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="accountTree1" width="100%" height="100%" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">';
embed = embed + '<param name="movie" value="%%%PATH_CSE%%%"/>';
embed = embed + '<param name="quality" value="high" />';
embed = embed + '<param name="bgcolor" value="#FFFFFF" />';
embed = embed + '<param name="allowScriptAccess" value="always" />';
embed = embed + '<param name="FlashVars" value="lang=' + lang +'&rowid=' + rowid + '"/>';
embed = embed + '<embed src="../user/content/accountTreeSample" quality="high" bgcolor="#FFFFFF"';
embed = embed + ' width="100%" height="100%" name="accountTree1" align="middle"';
embed = embed + ' play="true"';
embed = embed + ' loop="false"';
embed = embed + ' quality="high"';
embed = embed + ' allowScriptAccess="always"';
embed = embed + ' type="application/x-shockwave-flash"';
embed = embed + ' pluginspage="http://www.adobe.com/go/getflashplayer" ' ;
embed = embed + ' FlashVars="lang=' + lang +'&rowid=' + rowid + '" >';
embed = embed + '</embed>';
embed = embed + '</object>';
var x=document.getElementById("flextree");
x.innerHTML = embed;
}**
embedAccountTree("%%%Row_Id%%%","ENG");
</script>
答案 0 :(得分:0)
将 IE 的 Adobe Flash 插件更新到最新版本,然后尝试...