打开SwfUpload.js,在js文件中找到// Private: getFlashHTML generates the object tag needed to embed the flash in to the document”这行和“// Private: getFlashVars builds the parameter string that will be passed”和这行,然后把中间的用如下代码替换就OK了
代码如下:
SWFUpload.prototype.getFlashHTML = function (flashVersion) { // Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay var classid = ""; var Sys = {}; var ua = navigator.userAgent.toLowerCase(); if (window.ActiveXObject) { Sys.ie = ua.match(/msie ([\d.]+)/)[1]; if (Sys.ie && Sys.ie.substring(0, 1) == "9" || Sys.ie.substring(0, 2) == "10") { classid = ' classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'; } } return [''].join(""); };