新的Chrome更新杀死wmode = transparent [英] New Chrome update kills wmode=transparent
问题描述
这个问题已经被问了几次了,但是没有得到任何答案。
这是我的代码:
< object classid =clsid:D27CDB6E- AE6D-11cf-96B8-444553540000width =300height =280id =vanessaname =vanessa>
< param name =movievalue =vanessa.swf/>
< param name =wmodevalue =transparent/>
< embed id =vanessa
name =vanessa
src =vanessa.swf
width =300
height =280
wmode =transparent
/>
< / object>
可以在本网站的主页上看到实时预览: http://www.consomachat.com/
摘自: http:// www.google.com/support/forum/p/Chrome/thread?tid=2ca277b12bc29e35&hl=zh_CN
参考我上面的评论...
我找到了一个解决方案:这将与IE,FF,Safari&铬!它显示交换内容。
步骤1) SWF对象:
< script type =text / javascriptsrc =swfobject.js>< /脚本>
在这里获取最新版本: http://code.google.com/p/swfobject/downloads/list
第2步)将下面的代码放到你的body中
< object data =yourfile.swftype =application / x-shockwave-flash width =300height =280>
< param name =allowScriptAccessvalue =sameDomain>
< param name =qualityvalue =best>
< param name =wmodevalue =transparent>
< param name =bgcolorvalue =#ffffff/>
< param name =movievalue =yourfile.swf/>
<! - [if!IE]> - >
< object type =application / x-shockwave-flashdata =yourfile.swfwidth =300height =280>
<! - <![endif] - >
< p>替代内容< / p>
<! - [if!IE]> - >
< / object>
<! - <![endif] - >
< / object>
澄清:
看起来最重要的是包含 wmode =transparent
< embed src =quality =highwmode =transparentpluginspage =http://www.adobe.com/go/getflashtype =application / x-shockwave-flash width =300height =280>< / embed>
The newest version of chrome seems to have killed my transparent backgrounds on my SWF. On a website, I use flash to have a transparent video on top of the elements. However, the background is now black under the newest versions of Chrome.
The question has been asked a few time, but didn't get any answers.
This is my code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="280" id="vanessa" name="vanessa">
<param name="movie" value="vanessa.swf" />
<param name="wmode" value="transparent" />
<embed id="vanessa"
name="vanessa"
src="vanessa.swf"
width="300"
height="280"
wmode="transparent"
/>
</object>
And a live preview can be seen on the homepage of this website: http://www.consomachat.com/
Taken from: http://www.google.com/support/forum/p/Chrome/thread?tid=2ca277b12bc29e35&hl=en In reference to my comments above...
I found a solution: this will work with IE,FF,Safari & Chrome! And it shows altervative content.
Step 1) incl. SWFobject to your head:
<script type="text/javascript" src="swfobject.js"></script>
Get the latest version here: http://code.google.com/p/swfobject/downloads/list
Step 2) incl. the following code into your body
<object data="yourfile.swf" type="application/x-shockwave-flash" width="300" height="280">
<param name="allowScriptAccess" value="sameDomain">
<param name="quality" value="best">
<param name="wmode" value="transparent">
<embed src="" quality="high" wmode="transparent" pluginspage="http://www.adobe.com/go/getflash" type="application/x-shockwave-flash" width="300" height="280"></embed>
<param name="bgcolor" value="#ffffff" />
<param name="movie" value="yourfile.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="yourfile.swf" width="300" height="280">
<!--<![endif]-->
<p>alternative content</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
To clarify:
What seems to be the most important is to include wmode="transparent
to the <embed src
<embed src="" quality="high" wmode="transparent" pluginspage="http://www.adobe.com/go/getflash" type="application/x-shockwave-flash" width="300" height="280"></embed>
这篇关于新的Chrome更新杀死wmode = transparent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!