简体   繁体   English

Firefox 不显示 swf 文件

[英]Firefox doesn't show swf file

Here is my code这是我的代码

<div id="sw" style="cursor:pointer" >
<object id="swfobj"  type="application/x-shockwave-flash">
</object>

And JavaScript part和 JavaScript 部分

function openfile(filePath) {
        $("#swfobj").attr("data", filePath);
         $("#swfobj").show();
    };

I test it in Chrome and Firefox... In Chrome it shows swf when I change data of object(Chrome change it after second click and it problem too, but it show swf wxcept Firefox:D)我在 Chrome 和 Firefox 中测试它...

In Firefox, I can't see swf anyway... I tried to manually change data, but it doesn't help top... Need your help u suggestions))))在 Firefox 中,无论如何我都看不到 swf...我尝试手动更改数据,但它无济于事...需要您的帮助建议))))

Set the width and height to 1px each, then set the size to the proper flash size.将宽度和高度分别设置为1px ,然后将大小设置为正确的 flash 大小。 My guess is that the swf is hidden by default.我的猜测是swf默认是隐藏的。 Hidden swfs won't load in some browsers.隐藏的 swfs 不会在某些浏览器中加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM