另类调用flash无须激活的方法

2019-06-03 12:49:51于海丽

}else{try{ 
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); 
for(var i=3;axo!=null;i++){ 
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i); 
_25=new deconcept.PlayerVersion([i,0,0]);}} 
catch(e){} 
if(_23&&_25.major>_23.major){return _25;} 
if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){ 
try{_25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));} 
catch(e){}}} 
return _25;}; 
deconcept.PlayerVersion=function(_29){ 
this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0; 
this.minor=parseInt(_29[1])||0; 
this.rev=parseInt(_29[2])||0;}; 
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){ 
if(this.major<fv.major){return false;} 
if(this.major>fv.major){return true;} 
if(this.minor<fv.minor){return false;} 
if(this.minor>fv.minor){return true;} 
if(this.rev<fv.rev){return false;}return true;}; 
deconcept.util={getRequestParameter:function(_2b){ 
var q=document.location.search||document.location.hash; 
if(q){ 
var _2d=q.indexOf(_2b+"="); 
var _2e=(q.indexOf("&",_2d)>-1)?q.indexOf("&",_2d):q.length; 
if(q.length>1&&_2d>-1){ 
return q.substring(q.indexOf("=",_2d)+1,_2e); 
}}return "";}}; 
if(Array.prototype.push==null){ 
Array.prototype.push=function(_2f){ 
this[this.length]=_2f; 
return this.length;};} 
var getQueryParamValue=deconcept.util.getRequestParameter; 
var FlashObject=deconcept.SWFObject; // for backwards compatibility 
var SWFObject=deconcept.SWFObject; 


</script> 
使用方法:
<style type="text/css">
<!--
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
-->
</style>
<table width="10%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div id="flashmovyy" ></div>
    <script type="text/javascript">   
   var fo = new SWFObject("yanyuan.swf", "mymyy", "580", "386", "7", "");   
   fo.addParam("quality", "best");   
   fo.addParam("salign", "t");   
   fo.addParam("scale", "noscale");   
  fo.addParam("loop", "true");