加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

IE9支持swfupload浏览按钮

发布时间:2020-12-15 19:54:47 所属栏目:百科 来源:网络整理
导读:打开 swfupload.js 文件找到 307 行开始的如下代码: // Private: getFlashHTML generates the object tag needed to embed the flash in to the document SWFUpload.prototype.getFlashHTML =? function ?(flashVersion) { ???? // Flash Satay object synta

打开swfupload.js文件找到307行开始的如下代码:

// Private: getFlashHTML generates the object tag needed to embed the flash in to the document

SWFUpload.prototype.getFlashHTML =?function?(flashVersion) {

????// Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay

????return?['<object id="',?this.movieName,?'" type="application/x-shockwave-flash" data="',(this.support.imageResize ??this.settings.flash_url :?this.settings.flash9_url),'" width="',?this.settings.button_width,?'" height="',?this.settings.button_height,?'" class="swfupload">',

????????????????'<param name="wmode" value="',this.settings.button_window_mode,?'" />',208)'> ????????????????'<param name="movie" value="',(this.support.imageResize ?this.settings.flash_url :?this.settings.flash9_url),208)'> ????????????????'<param name="quality" value="high" />',208)'> ????????????????'<param name="allowScriptAccess" value="always" />',208)'> ????????????????'<param name="flashvars" value="'?+?this.getFlashVars() +?'" />',208)'> ????????????????'</object>'].join("");

};

总之找到SWFUpload.prototype.getFlashHTML =?function?(){}这个方法;

将其注掉,添加如下代码:

? ? }?
? ? ? ? return ['<object id="',this.movieName,'" classid="',classid,'" ?type="application/x-shockwave-flash" data="',this.settings.flash_url,'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload">',?
? ? ? ? ? ? ? ? '<param name="wmode" value="',this.settings.button_window_mode,'" />',?
? ? ? ? ? ? ? ? '<param name="movie" value="',?
? ? ? ? ? ? ? ? '<param name="quality" value="high" />',?
? ? ? ? ? ? ? ? '<param name="menu" value="false" />',?
? ? ? ? ? ? ? ? '<param name="allowScriptAccess" value="always" />',?
? ? ? ? ? ? ? ? '<param name="flashvars" value="' + this.getFlashVars() + '" />',?
? ? ? ? ? ? ? ? '</object>'].join("");?
};