Javascript Flash内容不会隐藏在Chrome中

Javascript Flash内容不会隐藏在Chrome中,javascript,asp.net,Javascript,Asp.net,我有一个asp.net页面,在该页面上我使用以下方式显示Flash内容: <object id="FlashFile" width="800" height="240"> <embed src="images/animation.swf" type="application/x-shockwave-flash" width="800" height="240"></embed> </object> 在显示弹出javascript之前 它在IE和

我有一个asp.net页面,在该页面上我使用以下方式显示Flash内容:

<object id="FlashFile" width="800" height="240">
<embed src="images/animation.swf" type="application/x-shockwave-flash" width="800"
 height="240"></embed>
</object>
在显示弹出javascript之前

它在IE和Mozilla上工作,但在Chrome上没有。 在chrome中,Flash内容仍以完全可视的方式显示。
有人能告诉我应该做什么吗。

尝试在您的可视线下方添加以下内容:

document.getElementById("FlashFile").style.opacity=0;
在此处找到此帖子中的示例:

我会将它全部包装在
div
中,然后将其隐藏

<div id="flashContent">
<object id="FlashFile" width="800" height="240">
<embed src="images/animation.swf" type="application/x-shockwave-flash" width="800" height="240"></embed>
</object></div>

它还没有工作…实际上在flash内容中,我一个接一个地显示了图像。我认为在一开始加载Javascript时,它是禁用的,但当图像更改时,它会再次显示。。但是有一种说法是它只是一个swf文件,它仍然没有被隐藏。Flash内容在Java脚本弹出窗口上重叠。需要指出的一点是,Flash内容位于母版页上,我将它们隐藏在子页中。假设我有services.aspx,我有母版页。母版页和隐藏行位于services.aspx中。
<div id="flashContent">
<object id="FlashFile" width="800" height="240">
<embed src="images/animation.swf" type="application/x-shockwave-flash" width="800" height="240"></embed>
</object></div>
document.getElementById("flashContent").style.visibility = "hidden";