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

Swfupload 解决IE9不兼容问题

发布时间:2020-12-15 18:20:10 所属栏目:百科 来源:网络整理
导读:只需要修改一下swfupload.js就可以解决 大约在307行修改前: // Private: getFlashHTML generates the object tag needed to embed the flash in to the documentSWFUpload.prototype.getFlashHTML = function (flashVersion) {// Flash Satay object syntax
只需要修改一下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 ['','','','','',''].join("");
};
修改后:
// 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	
	var classid = navigator.userAgent.search(/MSIE/) > -1?' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ':' ';
	return ['<object'+classid+'id="','" class="swfupload">','<param name="wmode" value="','" />','<param name="movie" value="','<param name="quality" value="high" />','<param name="allowScriptAccess" value="always" />','<param name="flashvars" value="' + this.getFlashVars() + '" />','</object>'].join("");
};
http://xuzhihong1987.blog.163.com/blog/static/26731587201222611160906/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读