免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
让Flash置于最底层的两个方法ecshop模板堂() 一、在flash代码上加wmode属性,tranparent:透明,opaque:不透明 在CSS中设置Flash属性,方法如下: #FlashHeadposition:bottom;width:100%;left:0px;margin:0px 0px -57px 0px; 注:position:设置Flash位置;left:设置Flash离左边的距离;margin:边距的绝对设置,个人认为这个参数很好用。二、用脚本输出flash 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.SWFOtotype=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+=+_18key); return _16;,getSWFHTML:function()var _19=; if(navigator.plugins&navigator.mimeTypes&navigator.mimeTypes.length) if(this.getAttribute(doExpressInstall) this.addVariable(MMplayerType,PlugIn); _19=0)_19+=flashvars=+_1c+;_19+=/; elseif(this.getAttribute(doExpressInstall)this.addVariable(MMplayerType,ActiveX); _19=; _19+=; var _1d=this.getParams(); for(var key in _1d)_19+=; var _1f=this.getVariablePairs().join(&); if(_1f.length0)_19+=;_19+=; 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; elseif(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.pluginsShockwave Flash; if(x&x.description)_23=new deconcept.PlayerVersion(x.description.replace(/(a-zA-Z|s)+/,).replace(/(s+r|s+b0-9+)/,.).split(.); elsetryvar axo=new ActiveXObject(ShockwaveFlash.ShockwaveFlash.7); catch(e)tryvar axo=new ActiveXObject(ShockwaveFlash.ShockwaveFlash.6); _23=new deconcept.PlayerVersion(6,0,21);axo.AllowScriptAccess=always; catch(e)if(_23.major=6)return _23;tryaxo=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=_270!=null?parseInt(_270):0; this.minor=_271!=null?parseInt(_271):0; this.rev=_272!=null?parseInt(_272):0; ; deconcept.PlayerVtotype.versionIsValid=function(fv) if(this.majorfv.major)return true; if(this.minorfv.minor)return true; if(this.revfv.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(_2bi.substring(0,_2bi.indexOf(=)=_29) return _2bi.substring(_2bi.indexOf(=)+1); return ; deconcept.SWFObjectUtil.cleanupSWFs=function()if(window.opera|!document.all)return; var _2d=document.getElementsByTagName(OBJECT); for(var i=0;i_2d.length;i+)_2di.style.display=none;for(var x in _2di) if(typeof _2dix=function)_2dix=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(); elsewindow.onunload=deconcept.SWFObjectUtil.cleanupSWFs; if(typeof window.onbeforeunload=function) var oldBeforeUnload=window.onbeforeunload; window.onbeforeunload=function() deconcept.SWFObjectUtil.prepUnload(); oldBeforeUnload(); elsewindow.onbeforeunload=deconcept.SWFObjectUtil.prepUnload; if(Atotype.push=null) Atotype.push=function(_31) thisthis.length=_31; return this.length; var getQueryParamValue=deconce
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026-2031中国古玩产业深度调研与投资前景预测报告
- 突发事件应急处理预案和措施方案
- 2025全国普法知识考试题库及答案
- 2025年装维规范培训试题及答案
- 2025年全民国家安全教育日知识竞赛考试试题库及答案
- 2025年机械检查工职业技能考试题库及答案完整版
- 2025年药房管理员药物溶液配置模拟考核试题及答案解析
- 手术室2025年夏秋季常见传染病培训试题及答案
- 2026-2031中国钕铁硼行业分析报告
- 火灾爆炸事故专项应急预案
- 风电场防汛课件
- 工业阀门知识培训课件
- 湖南省十五五风电项目规划
- 活动策划服务合同标准范文
- 新式茶饮基础知识培训课件
- 环保检修措施方案(3篇)
- 从0到1开播指导抖音本地生活商家直播培训
- 2025年临港人才面试题目及答案
- Q-JJJ 9002-2025 铁路建设项目安全穿透式管理实施指南
- 消防员涉赌涉贷课件
- 《中国银行业文明服务公约》及实施细则2
评论
0/150
提交评论