これを使用してください、私のために働きます:
if (swfobject.hasFlashPlayerVersion("11")) {
var fn = function() {
var now = new Date().getTime();
var flashvars = {};
var params = {
menu: "false",
scale: "noScale",
allowFullscreen: "true",
allowScriptAccess: "always",
bgcolor: "#000000",
wmode:"direct"
};
var attributes = {id: "altContent", name: "altContent"};
swfobject.embedSWF("test.swf?" + now, "altContent", "100%", "100%", "11", null, flashvars, params, attributes);
};
}
else {
var fn = function() {
var att = { data:"expressInstall.swf", width:"600", height:"240" };
var par = { menu:false };
var id = "altContent";
swfobject.showExpressInstall(att, par, id, cancelFunction);
}
}
swfobject.addDomLoadEvent(fn);