Swf对象flash电影显示在我的thickbox中

时间:2009-05-18 10:37:16

标签: jquery swfobject thickbox

swf电影位于所有内容之上,包括厚盒中出现的内容。我不知道为什么会这样。

此问题仅适用于IE7(目前为止),但可能至少在IE6中(我没有IE6可以测试)。 BElow是我用来嵌入我的flash电影的代码:

<div id="flash">You need the Flash Player to view this video.
<script type="text/javascript"><!--
/*<! */
var so = new SWFObject("mixed.swf", "flash", 529, 323, "9");
so.write("flash");
/*-->*/
</script> 

我正在使用thickbox,因为我在网站上有其他jQuery位。该网站的网址为http://clients.bionic-comms.co.uk/fox/foxintouch-wp/issue/13/brand-highlights/

如果有人能给我答案,我会非常感激。提前致谢

2 个答案:

答案 0 :(得分:1)

Check out this solution.看看它是否适合你。

答案 1 :(得分:0)

你没有关闭你的div ...你错过了/ div标签。

<div id="flash">You need the Flash Player to view this video.**</div>**
<script type="text/javascript">
var so = new SWFObject("mixed.swf", "flash", 529, 323, "9");
so.write("flash");
</script>

此外,SWFObject代码不应放在目标div中;这给某些人带来了问题。

我看到你正在使用SWFObject 1.5;我建议升级到SWFObject 2.2,因为它包含一个关于内存泄漏和Flash视频的重要错误修正。 http://code.google.com/p/swfobject/