<div class="codetitle"> <span><a style="CURSOR: pointer" data="80399" class="copybut" id="copybut80399" onclick="doCopy('code80399')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code80399"><script type="text/javascript"> <br>/** <br> * SWFObject v1.4: Flash Player 감지 및 삽입 - http://blog.deconcept.com/swfobject/ <br> * <br> * SWFObject는 (c) 2006 Geoff Stearns이며 MIT 라이선스에 따라 출시됩니다. : <br> * http://www.opensource.org/licenses/mit-license.php <br> * <br> * **SWFObject는 이전에 FlashObject로 알려진 SWF 삽입 스크립트입니다. <br> * 법적 이유로 이름이 변경되었습니다. <br> */ <br>if(typeof deconcept=="정의되지 않음"){var deconcept=new Object();} <br>if(typeof deconcept.util=="정의되지 않음"){ deconcept.util=new Object();} <br>if(typeof deconcept.SWFObjectUtil=="정의되지 않음"){deconcept.SWFObjectUtil=new Object();} <br>deconcept.SWFObject=function(_1,id,w ,h,_5,c,_7,_8,_9,_a,_b){ <br>if(!document.createElement||!document.getElementById){return;} <br>this.DETECT_KEY=_b?_b:" 플래시 감지"; <br>this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY); <br>this.params=new Object(); <br>this.variables=new Object(); <br>this.attributes=new Array(); <br>if(_1){this.setAttribute("swf",_1);} <br>if(id){this.setAttribute("id",id);} <br>if(w){this. setAttribute("width",w);} <br>if(h){this.setAttribute("height",h);} <br>if(_5){this.setAttribute("version",new deconcept.PlayerVersion (_5.toString().split(".")));} <br>this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_7); <br>if(c){this.addParam("bgcolor",c);} <br>var q=_8?_8:"high"; <br>this.addParam("quality",q); <br>this.setAttribute("useExpressInstall",_7); <br>this.setAttribute("doExpressInstall",false); <br>var _d=(_9)?_9:window.location; <br>this.setAttribute("xiRedirectUrl",_d); <br>this.setAttribute("redirectUrl",""); <br>if(_a){this.setAttribute("redirectUrl",_a);}}; <br>deconcept.SWFObject.prototype={setAttribute:function(_e,_f){ <br>this.attributes[_e]=_f; <br>},getAttribute:function(_10){ <br>return this.attributes[_10]; <br>},addParam:function(_11,_12){ <br>this.params[_11]=_12; <br>},getParams:function(){ <br>return this.params; <br>},addVariable:function(_13,_14){ <br>this.variables[_13]=_14; <br>},getVariable:function(_15){ <br>return this.variables[_15]; <br>},getVariables:function(){ <br>this.variables를 반환합니다. <br>},getVariablePairs:function(){ <br>var _16=new Array(); <br>var 키; <br>var _18=this.getVariables(); <br>for(키 입력 _18){ <br>_16.push(key "=" _18[key]);} <br>return _16; <br>},getSWFHTML:function(){ <br>var _19=""; <br>if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){ <br>if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");} <br>_19= "<embed type="application/x-shockwave-flash" src="" this.getAttribute("swf") "" width="" this.getAttribute("width") "" height="" this.getAttribute ("키") """; <BR>_19 =" id="" this.getAttribute("id") "" name="" this.getAttribute("id") "" "; <BR>var _1a=this.getParams(); <BR>for(var key in _1a){_19 =[key] "="" _1a[key] "" ";} <BR>var _1c=this.getVariablePairs().join("&"); <BR>if(_1c.length>0){_19 ="flashvars="" _1c """;} <br>_19 ="/>"; <br>}else{ <br>if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");} <br>_19="<object id="" this. getAttribute("id") "" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="" this.getAttribute("width") "" height="" this.getAttribute("height") " ">"; <br>_19 ="<param name="movie" value="" this.getAttribute("swf") "" />"; <br>var _1d=this.getParams(); <br>for(var key in _1d){_19 ="<param name="" key "" value="" _1d[key] "" />";} <br>var _1f=this.getVariablePairs( ).가입하다("&"); <br>if(_1f.length>0){_19 ="<param name="flashvars" value="" _1f "" />";} <br>_19 ="</object>";} <br>반품 _19; <br>},write:function(_20){ <br>if(this.getAttribute("useExpressInstall")){ <br>var _21=new deconcept.PlayerVersion([6,0,65]); <br>if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){ <br>this.setAttribute("doExpressInstall",true); <br>this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl"))); <br>document.title=document.title.slice(0,47) " - Flash Player 설치"; <br>this.addVariable("MMdoctitle",document.title);}} <br>if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version) "))){ <br>var n=(typeof _20=="string")?document.getElementById(_20):_20; <br>n.innerHTML=this.getSWFHTML(); <br>true를 반환합니다. <br>}else{ <br>if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}} <br>return false;} }; <br>deconcept.SWFObjectUtil.getPlayerVersion=function(_23,_24){ <br>var _25=new deconcept.PlayerVersion([0,0,0]); <br>if(navigator.plugins&&navigator.mimeTypes.length){ <br>var x=navigator.plugins["Shockwave Flash"]; <br>if(x&&x.description){_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|s) /,"").replace(/(s r|s b[0 -9] )/,".").split("."));} <br>}else{try{ <br>var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); <br>for(var i=3;axo!=null;i ){ <br>axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash." i); <br>_25=new deconcept.PlayerVersion([i,0,0]);}} <br>catch(e){} <br>if(_23&&_25.major>_23.major){return _25;} <br>if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){ <br>시도해 보세요 {_25=새로운 deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));} <br>catch(e){}}} <br> 반환 _25;}; <br>deconcept.PlayerVersion=function(_29){ <br>this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0; <br>this.minor=parseInt(_29[1])||0; <br>this.rev=parseInt(_29[2])||0;}; <br>deconcept.PlayerVersion.prototype.versionIsValid=function(fv){ <br>if(this.major<fv.major){return false;} <BR>if(this.major>fv.major){return true ;} <br>if(this.minor<fv.minor){return false;} <BR>if(this.minor>fv.minor){return true;} <br>if(this.rev<fv.rev ){return false;}return true;}; <BR>deconcept.util={getRequestParameter:function(_2b){ <BR>var q=document.location.search||document.location.hash; <BR>if(q){ <BR>var _2d=q.indexOf(_2b "="); <BR>var _2e=(q.indexOf("&",_2d)>-1)?q.indexOf("&",_2d):q.length; <br>if(q.length>1&&_2d>-1){ <br>return q.substring(q.indexOf("=",_2d) 1,_2e); <br>}}''를 반환합니다;}}; <br>if(Array.prototype.push==null){ <br>Array.prototype.push=function(_2f){ <br>this[this.length]=_2f; <br>return this.length;};} <br>var getQueryParamValue=deconcept.util.getRequestParameter; <br>var FlashObject=deconcept.SWFObject; // 이전 버전과의 호환성을 위해 <br>var SWFObject=deconcept.SWFObject; <br><br><br></script> </div> <br><strong>使사용 방법:</strong><br><div class="codetitle"> <span><a style="CURSOR: pointer" data="72113" class="copybut" id="copybut72113" onclick="doCopy('code72113')"><u>复主代码</u></a></span> 代码如下:</div> <div class="codebody" id="code72113"><style type="text/css"> <br><!-- <BR>본문 { <BR> 여백-왼쪽: 0px; <BR> 여백 상단: 0px; <BR> 오른쪽 여백: 0px; <BR> 여백-하단: 0px; <BR>} <BR>--> <br></style> <br><table width="10%" border="0" cellspacing="0" cellpadding="0"> <br> <tr> <br> <td><div id="flashmovyy" ></div> <br> <script type="text/javascript"> <br> var fo = new SWFObject("yanyuan.swf", "mymyy", "580", "386", "7", ""); <br> fo.addParam("품질", "최고"); <br> fo.addParam("salign", "t"); <br> fo.addParam("scale", "noscale"); <br> fo.addParam("loop", "true"); <br> fo.write("flashmovyy"); <br> </script></td> <br> </tr> <br></테이블> </div>