如何放置不透明度 < 的覆盖 DIV 1 在 Flash 对象上

发布于 2024-10-29 20:50:18 字数 1386 浏览 6 评论 0 原文

我们有一个 flash 对象,当我们使用 blockUI 或其他不透明度 < 的覆盖 div 时1、它不会使闪光区域变得透明。然而,当不透明度为 1 时,它确实隐藏了 Flash 对象,但我想让 div 过度透明,这使得 Flash 区域也像其他 HTML 对象一样透明。

这是一个已知问题/事情吗?有什么解决办法吗?

这是代码专家:

<object width="100%" height="200" align="" id="charts" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" wmode="transparent"> 
<param value="/charts.swf?library_path=/charts_library&amp;xml_source=/chart&amp;" name="movie"> 
<param value="high" name="quality"> 
<param value="#E6E6E6" name="bgcolor"> 
<param value="transparent" name="wmode"> 
<embed width="100%" height="200" align="" salign="TL" scale="noscale" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" swliveconnect="true" name="charts" bgcolor="#E6E6E6" quality="high" src="/charts.swf?library_path=/charts_library&amp;xml_source=/chart&amp;license="> 
</object>

对于覆盖 div,我们使用 jQuery.blockUI 和 FancyBox(当我们需要一些弹出窗口并阻止 UI 时)。我们还尝试使用带有 z 索引的 div 来覆盖 flash 对象。当不透明度为 1 时,它会覆盖并隐藏闪光灯,但当不透明度 < 时则不会。 1.

这是屏幕截图:

http://www.4shared.com/photo /PO-Cb1bi/Flash_Overlay_Transparency.html

We have a flash object and when we use blockUI or some other overlay div with opacity < 1, it doesn't make the flash area transparent. However, it do hides the flash object when opacity is 1, but I want to have the overly div transparent which make the flash area transparent too like it doing for other HTML objects.

Is it a know issue/thing? Any workaround?

Here is the code expert:

<object width="100%" height="200" align="" id="charts" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" wmode="transparent"> 
<param value="/charts.swf?library_path=/charts_library&xml_source=/chart&" name="movie"> 
<param value="high" name="quality"> 
<param value="#E6E6E6" name="bgcolor"> 
<param value="transparent" name="wmode"> 
<embed width="100%" height="200" align="" salign="TL" scale="noscale" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" swliveconnect="true" name="charts" bgcolor="#E6E6E6" quality="high" src="/charts.swf?library_path=/charts_library&xml_source=/chart&license="> 
</object>

For overlay div we are using jQuery.blockUI and FancyBox (when we need to some popup and block the UI). We also tried to overlay the flash object using a div with z-index. It overlays and hides the flash when opacity is 1 but not when it's < 1.

Here is the screen shot:

http://www.4shared.com/photo/PO-Cb1bi/Flash_Overlay_Transparency.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

寄离 2024-11-05 20:50:18

您需要将 Flash 对象的 wmode 参数设置为“透明”。

//文章

http://kb2.adobe.com/cps/142/tn_14201.html< /a>

//视频教程

http://kb2.adobe.com/cps/ 524/cpsid_52418.html#flash

You need to set the wmode parameter of the flash object to "transparent".

//Article

http://kb2.adobe.com/cps/142/tn_14201.html

//Video tutorial

http://kb2.adobe.com/cps/524/cpsid_52418.html#flash

咿呀咿呀哟 2024-11-05 20:50:18

您需要将 wmode 透明添加到 标记以及对象中:

<embed wmode="transparent" ...>

这应该可以解决您的问题。

You need to add the wmode transparent to your <embed> tag as well as the object:

<embed wmode="transparent" ...>

This should fix your problem.

巨坚强 2024-11-05 20:50:18

您需要在 Flash 对象中添加此参数。

<param name="wmode" value="opaque" />

以下是详细信息:http://slightlymore.co.uk /flash-and-the-z-index-问题已解决/

You need to add this parameter in your flash object.

<param name="wmode" value="opaque" />

Here are the details: http://slightlymore.co.uk/flash-and-the-z-index-problem-solved/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文