This article provides a section of the same Jquery+flash JS Chinaren 3d flash switch effect JS image switching effects of the code, if you like to come in to download it.
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<meta name= "Copyright" content= "http://www.111cn.net/"/>
<meta name= "description" content= "! "/>
<meta content= "" name= "keywords"/>
<title></title>
<BODY>
<div id=3dswf align= "center" ></div>
<script language=javascript src= "Js/3dswf.js" ></script>
</BODY></HTML>
Save the following code as a 3dswf.js file
if (typeof sas== "undefined") var sas=new object (); if (typeof sas.ued== "undefined") sas.ued=new object (); if (typeof sas.ued.util== "undefined") sas.ued.util=new Object (); if (typeof sas.ued.flashobjectutil== "undefined") Sas.ued.flashobjectutil=new Object (); Sas.ued.flashobject=function (Swf,id,w,h,ver,c,useexpressinstall,quality, Xiredirecturl,redirecturl,detectkey) {if (!document.createelement| |! document.getElementById) Return;this. Detect_key=detectkey?detectkey: ' Detectflash '; This.skipdetect=sas.ued.util.getrequestparameter (this. Detect_key); This.params=new object (); This.variables=new object (); this.attributes=new Array (); This.useexpressinstall=useexpressinstall;if (SWF) this.setattribute (' SwF ', SWF); if (ID) this.setattribute (' ID ', id); if (w) this.setattribute (' width ', w); if (h) this.setattribute (' height ', h); if (ver) this.setattribute (' Version ', new Sas.ued.PlayerVersion (Ver.tostring (). Split (".")); This.installedver=sas.ued.flashobjectutil.getplayerversion (This.getattribute (' version '), useExpressInstall); if ( c) this.adDparam (' bgcolor ', c); var q=quality?quality: ' High '; This.addparam (' quality ', q); var xir= (Xiredirecturl)? Xiredirecturl:window.location;this.setattribute (' Xiredirecturl ', Xir); This.setattribute (' RedirectUrl ', '); if ( RedirectURL) This.setattribute (' RedirectURL ', RedirectURL)};sas.ued.flashobject.prototype={setattribute:function (Name,value) {this.attributes[name]=value},getattribute:function (name) {return this.attributes[name]},addparam:function (name), Value) {this.params[name]=value},getparams:function () {return this.params},addvariable:function (name,value) { This.variables[name]=value},getvariable:function (name) {return this.variables[name]},getvariables:function () { Return This.variables},createparamtag:function (n,v) {var p=document.createelement (' param ');p. setattribute (' name ') N);p. setattribute (' value ', v); return p},getvariablepairs:function () {var variablepairs=new Array (); var Key;var Variables=this.getvariables (); for (key in variables) {Variablepairs.push (key+ "=" +variables[key])}return Variablepairs},getflasHhtml:function () {var flashnode= ""; if (navigator.plugins&&navigator.mimetypes&& Navigator.mimeTypes.length) {if (This.getattribute ("Doexpressinstall")) this.addvariable ("Mmplayertype", "PlugIn") ; flashnode= ' <embed type= ' Application/x-shockwave-flash "src=" ' +this.getattribute (' swf ') + ' width= ' + This.getattribute (' width ') + ' "height=" ' +this.getattribute (' height ') + ' "'; flashnode+= ' id= ' ' +this.getattribute ' (' Id ') + ' "Name=" ' +this.getattribute (' id ') + ' "'; var params=this.getparams (); for (var key in params) {flashnode+=[key]+ ' = ' ' +params[key]+ ' "'}var pairs=this.getvariablepairs (). Join (" & "); if (pairs.length>0) {flashnode+= ' flashvars= ' ' +pairs+ ' "'}flashnode+= '/> '}else{if (This.getattribute (" Doexpressinstall ")) this.addvariable (" MMplayerType "," ActiveX "); flashnode= ' <object id= ' +this.getattribute (' id ') + ' classid= ' clsid:d 27cdb6e-ae6d-11cf-96b8-444553540000 "Width=" ' +this.getattribute (' width ') + ' height= ' ' +this.getattribute ' (' Height ' + ' > '; flashnode+= ' <param name= ' movie ' value= '+this.getattribute (' swf ') + ' "/> '; var params=this.getparams (); for (var key in params) {flashnode+= ' <param name= '] +key+ ' "value=" ' +params[key]+ ' "/> '}var pairs=this.getvariablepairs (). Join (" & "); if (pairs.length>0) { flashnode+= ' <param name= flashvars ' value= ' +pairs+ '/> '}flashnode+= ' </object> '}return Flashnode}, Write:function (ElementID) {if (This.useexpressinstall) {var expressinstallreqver=new sas.ued.PlayerVersion ([6,0,65] ); if (This.installedVer.versionIsValid (expressinstallreqver) &&!this.installedver.versionisvalid ( This.getattribute (' version ')) {this.setattribute (' Doexpressinstall ', true); This.addvariable ("Mmredirecturl", Escape (This.getattribute (' Xiredirecturl '));d Ocument.title=document.title.slice (0,47) + "-Flash Player Installation "; This.addvariable (" Mmdoctitle ", Document.title)}}else{this.setattribute (' DoExpressInstall ', False)} if (this.skipdetect| | This.getattribute (' Doexpressinstall ') | | This.installedVer.versionIsValid (This.getattribute (' version ')) {var n=(typeof elementid== ' string ') document.getElementById (ElementID): elementid;n.innerhtml=this.getflashhtml ()}else{ if (This.getattribute (' RedirectURL ')!= "") {Document.location.replace (This.getattribute (' RedirectURL ')}}}}; Sas.ued.flashobjectutil.getplayerversion=function (Reqver,xiinstall) {var playerversion=new sas.ued.PlayerVersion ( 0,0,0); if (navigator.plugins&&navigator.mimetypes.length) {var x=navigator.plugins["Shockwave Flash"];if (x &&x.description) {playerversion=new sas.ued.PlayerVersion (X.description.replace (/) ([a-z]|[ A-z]|s) +/, ""). Replace (/(s+r|s+b[0-9]+)/, "."). Split ("."))} Else{try{var axo=new ActiveXObject ("Shockwaveflash.shockwaveflash"); for (Var i=3;axo!=null;i++) {Axo=new ActiveXObject ("Shockwaveflash.shockwaveflash.") +i); Playerversion=new sas.ued.PlayerVersion ([i,0,0])}}catch (e) {}if (reqver&&playerversion.major> Reqver.major) return Playerversion;if (!reqver| | ((reqver.minor!=0| | reqver.rev!=0) &&playerversion.major==reqver.major) | | playerversion.major!=6| | XiInstall) {try{playerversion=new sas.ued.PlayerVersion (Axo. GetVariable ("$version"). Split ("") [1].split (","))}catch (e) {}}}return playerversion};sas.ued.playerversion= function (arrversion) {this.major=parseint (arrversion[0]) | | 0;this.minor=parseint (arrversion[1]) | | 0;this.rev=parseint (arrversion[2]) | | 0};sas.ued.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};sas.ued.util={getrequestparameter:function (param) {var q= document.location.search| | Document.location.href.hash;if (q) {var startindex=q.indexof (param+ "="); var endindex= (Q.indexof ("&", StartIndex >-1)? Q.indexof ("&", StartIndex): Q.length;if (q.length>1&&startindex>-1) {return q.substring ( Q.indexof ("=", StartIndex) +1,endindex)}}return ""}};if (array.prototype.push==null) {array.prototype.push=function (item) {this[this.length]=iTem;return This.length}}var Getqueryparamvalue=sas.ued.util.getrequestparameter;var SohuFlash=sas.ued.FlashObject ;
function Cookie (document,name,hours,path,domain,secure) {this. $document =document;this. $name =name;this.$ Expiration=hours?new Date (new Date ()). GetTime () +hours*3600000): Null;this. $path =path?path:null;this. $domain = Domain?domain:null;this. $secure =secure;}; Cookie.prototype.store=function () {var cookieval= ""; for (Var prop in this) {if (Prop.charat (0) = = ' $ ') | | ((typeof this[prop]) = = ' function ') Continue;if (cookieval!= "") cookieval+= ' & '; cookieval+=prop+ ': ' +escape (This[prop]); var cookie=this. $name + ' = ' +cookieval;if (this. $expiration) cookie+= '; Expires= ' +this. $expiration. togmtstring (); if (this. $path) cookie+= '; Path= ' +this. $path; if (this. $domain) cookie+= '; Domain= ' +this. $domain; if (this. $secure) cookie+= '; Secure '; this. $document. Cookie=cookie;}; Cookie.prototype.load=function () {var allcookies=this. $document. Cookie;if (allcookies== "") return False;var start= Allcookies.indexof (this. $name + ' = "); if (start==-1) return false;start+=this. $name. Length+1;var end= Allcookies.indexof ('; ', start); if (end==-1) End=allCookies.length;var cookieval=allcookies.substring (start,end); var a=cookieval.split (' & '); for (var i=0; i< A.length; i++) a[i]=a[i].split (': '); for (var i=0; i<a.length; i++) This[a[i][0]]=unescape (a[i][1]); Cookie.prototype.remove = function () {var Cookie;cookie = this. $name + ' = '; if (this. $path) cookie = = '; path= ' + this. $path ; if (this. $domain) cookie = '; Domain= ' + this. $domain; cookies = '; Expires=fri, 02-jan-1970 00:00:00 GMT '; this. $document. cookie = cookie;
var pics= ' images/a-01.jpg|images/a-02.jpg|images/a-03.jpg|images/a-04.jpg|images/a-05.jpg|_|images/ B-01.jpg|images/b-02.jpg|images/b-03.jpg|images/b-04.jpg|images/b-05.jpg|_|images/c-01.jpg|images/c-02.jpg| Images/c-03.jpg|images/c-04.jpg|images/c-05.jpg ';
var
links= ' http://www.111cn.net/|http://www.111cn.net/|http://www.111cn.net/|http://www.111cn.net /|http://www.111cn.net/|_|http://www.111cn.net/|http://www.111cn.net/|http://www.111cn.net/|http:// Www.111cn.net/|http://www.111cn.net/|_|http://www.111cn.net/|http://www.111cn.net/|http://www.111cn.net/|http ://www.111cn.net/|http://www.111cn.net/';
var texts= ' | | | ';
var sohuFlash2 = new Sohuflash ("flash/3dswf.swf", "sohuFlashID01", "230", "180", "6", "#ffffff");
sohuflash2.addparam ("Quality", "high");
sohuflash2.addparam ("salign", "T");
sohuflash2.addparam ("wmode", "opaque");
sohuflash2.addvariable ("pics", pics);
sohuflash2.addvariable ("links", links);
sohuflash2.addvariable ("Texts", texts);
sohuflash2.write ("3dswf")
Click to download <a href= "http://www.111cn.net/flashjs/3dswf.swf" >3dswf.swf files </a> Flash files