Flash to close the top right corner ad code

Source: Internet
Author: User

<!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.111cn.net/tr/xhtml1/dtd/ Xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title>flash to close top right corner ad code </title>
<script type=text/Web page Special effects >
if (typeof deconcept== "undefined") {var deconcept=new object ();}
if (typeof deconcept.util== "undefined") {Deconcept.util=new object ();}
if (typeof deconcept.swfobjectutil== "undefined") {Deconcept.swfobjectutil=new object ();}
Deconcept.swfobject=function (_1,id,w,h,_5,c,_7,_8,_9,_a,_b) {if (!document.getelementbyid) {return;}
This.detect_key=_b?_b: "Detectflash";
This.skipdetect=deconcept.util.getrequestparameter (This.detect_key);
This.params=new object ();
This.variables=new object ();
This.attributes=new Array ();
if (_1) {this.setattribute ("swf", _1);}
if (ID) {This.setattribute ("id", id);}
if (w) {This.setattribute ("width", w);}
if (h) {This.setattribute ("height", h);}
if (_5) {this.setattribute ("version", New Deconcept.playerversion (_5.tostring (). Split ("."));
This.installedver=deconcept.swfobjectutil.getplayerversion ();
if (c) {This.addparam ("bgcolor", c);}
var q=_8?_8: "High";
This.addparam ("quality", q);
This.setattribute ("Useexpressinstall", _7);
This.setattribute ("Doexpressinstall", false);
var _d= (_9) _9:window.location;
This.setattribute ("Xiredirecturl", _d);
This.setattribute ("RedirectURL", "");
if (_a) {This.setattribute ("RedirectURL", _a);}};
Deconcept.swfobject.prototype={setattribute:function (_e,_f) {
This.attributes[_e]=_f;
},getattribute:function (_10) {
return THIS.ATTRIBUTES[_10];
},addparam:function (_11,_12) {
This.params[_11]=_12;
},getparams:function () {
return this.params;
},addvariable:function (_13,_14) {
this.variables[_13]=_14;
},getvariable:function (_15) {
return this.variables[_15];
},getvariables:function () {
return this.variables;
},getvariablepairs:function () {
var _16=new array ();
var key;
var _18=this.getvariables ();
For (key in _18) {_16.push (key+ "=" +_18[key]);}
Return _16;},getswfhtml:function () {var _19= "";
if (navigator.plugins&&navigator.mimetypes&&navigator.mimetypes.length) {
if (This.getattribute ("Doexpressinstall")) {
This.addvariable ("Mmplayertype", "plugin");}
_19= "<embed type=" Application/x-shockwave-flash "src=" "+this.getattribute" ("swf") + "width=" "+this.getattribute" ("width") + "height=" "+this.getattribute" ("height") + "";
_19+= "id=" "+this.getattribute" ("id") + "Name=" "+this.getattribute" ("id") + "" ";
var _1a=this.getparams ();
for (var key in _1a) {_19+=[key]+ "=" "+_1a[key]+" "";}
var _1c=this.getvariablepairs (). Join ("&");
if (_1c.length>0) {_19+= "flashvars=" "+_1c+" "";} _19+= "/>";
}else{if (This.getattribute ("Doexpressinstall")) {this.addvariable ("Mmplayertype", "ActiveX");}
_19= "<object id=" "+this.getattribute (" id ") +" classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width= "" + This.getattribute ("width") + "" height= "" +this.getattribute ("height") + ">";
_19+= "<param name=" movie "Value=" "+this.getattribute" ("swf") + "/>";
var _1d=this.getparams ();
for (var key in _1d) {_19+= "<param name=" "+key+" "value=" "+_1d[key]+" "/>";}
var _1f=this.getvariablepairs (). Join ("&");
if (_1f.length>0) {_19+= "<param name=" flashvars "value=" "+_1f+" "/>";} _19+= "</object>";}
return _19;
},write:function (_20) {
if (This.getattribute ("Useexpressinstall")) {
var _21=new deconcept.playerversion ([6,0,65]);
if (This.installedver.versionisvalid (_21) &&!this.installedver.versionisvalid (This.getattribute ("version "))){
This.setattribute ("Doexpressinstall", true);
This.addvariable ("Mmredirecturl", Escape (This.getattribute ("Xiredirecturl"));
Document.title=document.title.slice (0,47) + "-Flash Player Installation";
This.addvariable ("Mmdoctitle", Document.title);}
if (this.skipdetect| | This.getattribute ("Doexpressinstall") | | This.installedver.versionisvalid (This.getattribute ("version"))) {
var n= (typeof _20== "string")? document.getElementById (_20): _20;
N.innerhtml=this.getswfhtml (); return true;
}else{if (This.getattribute ("RedirectURL")!= "") {Document.location.replace (This.getattribute ("RedirectURL"));}
return false;};
Deconcept.swfobjectutil.getplayerversion=function () {
var _23=new deconcept.playerversion ([0,0,0]);
if (navigator.plugins&&navigator.mimetypes.length) {
var x=navigator.plugins["Shockwave Flash"];
if (x&&x.description) {_23=new deconcept.playerversion (x.description.replace (/[A-za-z]|s) +/, ""). Replace ( /(s+r|s+b[0-9]+)/, "."). Split ("."));
}else{try{var axo=new ActiveXObject ("shockwaveflash.shockwaveflash.7");}
catch (e) {Try{var axo=new ActiveXObject ("shockwaveflash.shockwaveflash.6");
_23=new deconcept.playerversion ([6,0,21]); axo.allowscriptaccess= "Always";}
catch (E) {if (_23.major==6) {return _23}} Try{axo=new ActiveXObject ("Shockwaveflash.shockwaveflash");}
catch (E) {}}if (axo!=null) {_23=new deconcept.playerversion (axo.getvariable ("$version"). Split ("") [1].split (",")];}
return _23;};
Deconcept.playerversion=function (_27) {
This.major=_27[0]!=null?parseint (_27[0]): 0;
This.minor=_27[1]!=null?parseint (_27[1]): 0;
This.rev=_27[2]!=null?parseint (_27[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 (_29) {
var q=document.location.search| | Document.location.hash;
if (q) {var _2b=q.substring (1). Split ("&");
for (Var i=0;i<_2b.length;i++) {
if (_2b[i].substring 0,_2b[i].indexof ("=")) ==_29) {
Return _2b[i].substring ((_2b[i].indexof ("=") +1));}}
Return "";};
Deconcept.swfobjectutil.cleanups Tutorial Wfs=function () {if (window.opera| |! document.all) {return;}
var _2d=document.getelementsbytagname ("Object");
for (Var i=0;i<_2d.length;i++) {_2d[i].style.display= ' none '; for (var x in _2d[i]) {
if (typeof _2d[i][x]== "function") {_2d[i][x]=function () {};}}};
Deconcept.swfobjectutil.prepunload=function () {__flash_unloadhandler=function () {};
__flash_savedunloadhandler=function () {};
if (typeof window.onunload== "function") {
var _30=window.onunload;
Window.onunload=function () {
Deconcept.swfobjectutil.cleanupswfs (); _30 ();};
}else{window.onunload=deconcept.swfobjectutil.cleanupswfs;};
if (typeof window.onbeforeunload== "function") {
var oldbeforeunload=window.onbeforeunload;
Window.onbeforeunload=function () {
Deconcept.swfobjectutil.prepunload ();
Oldbeforeunload ();};
}else{window.onbeforeunload=deconcept.swfobjectutil.prepunload;}
if (array.prototype.push==null) {
Array.prototype.push=function (_31) {
this[this.length]=_31;
return this.length;}
var getqueryparamvalue=deconcept.util.getrequestparameter;
var flashobject=deconcept.swfobject;
var swfobject=deconcept.swfobject;

</script>
<body>
<div align= "center" >
<div id=layer1 style= "Z-INDEX:1; right:0px; Position:absolute; top:0px ">
<div id=flash1></div>
<script type=text/javascript>
var so = new SWFObject ("flash/a2.swf", "Mymovie", "", "a", "7", "#336699");
So.addparam ("Quality", "high");
So.addparam ("wmode", "Transparent");
So.addparam ("menu", "false");
So.addparam ("scale", "noscale");
So.addparam ("Flashvars", Document.location.search.substr (1));
So.write ("Flash1");
</script>
</div>
</div>
</body>

Source Download
http://down.111cn.net/down/code/js/jiaodiantu/2010/1014/21198.html
Effect Preview
http://g.111cn.net/ javascript/code/20101012/close/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.