<SCRIPT type="text/javascript">
function chkFlash() {
var MM_contentVersion = 11;
var isIE = (navigator.appVersion.indexOf("MSIE") >= 0);
var hasFlash = true;
var str = "install_flashplayer11_ax.exe";
if(isIE) {
try{
var objFlash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
} catch(e) {
hasFlash = false;
}
if(objFlash){
hasFlash = true;
VSwf=objFlash.GetVariable("$version");
MM_PluginVersion=parseInt(VSwf.split(" ")[1].split(",")[0]);
hasFlash = MM_PluginVersion >= MM_contentVersion;
}
} else {
if(!navigator.plugins["Shockwave Flash"]) {
hasFlash = false;
}
if(hasFlash){
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i) {
if (isNaN(parseInt(words[i]))) {
continue;
}
var MM_PluginVersion = words[i];
}
hasFlash = MM_PluginVersion >= MM_contentVersion;
}
}
if(!hasFlash){
if(isIE){
str = "install_flashplayer11_ax.exe"
}else{
str = "install_flashplayer11_plugin.exe"
}
var alternateContent = '系统没合适的Flash插件![<a id="installFlashId" href=cache/'+str+'>安装</a>]';
document.getElementById("flash").innerHTML = alternateContent;
}
return;
}
</SCRIPT>
function chkFlash() {
var MM_contentVersion = 11;
var isIE = (navigator.appVersion.indexOf("MSIE") >= 0);
var hasFlash = true;
var str = "install_flashplayer11_ax.exe";
if(isIE) {
try{
var objFlash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
} catch(e) {
hasFlash = false;
}
if(objFlash){
hasFlash = true;
VSwf=objFlash.GetVariable("$version");
MM_PluginVersion=parseInt(VSwf.split(" ")[1].split(",")[0]);
hasFlash = MM_PluginVersion >= MM_contentVersion;
}
} else {
if(!navigator.plugins["Shockwave Flash"]) {
hasFlash = false;
}
if(hasFlash){
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i) {
if (isNaN(parseInt(words[i]))) {
continue;
}
var MM_PluginVersion = words[i];
}
hasFlash = MM_PluginVersion >= MM_contentVersion;
}
}
if(!hasFlash){
if(isIE){
str = "install_flashplayer11_ax.exe"
}else{
str = "install_flashplayer11_plugin.exe"
}
var alternateContent = '系统没合适的Flash插件![<a id="installFlashId" href=cache/'+str+'>安装</a>]';
document.getElementById("flash").innerHTML = alternateContent;
}
return;
}
</SCRIPT>