新的Chrome更新杀死wmode = transparent [英] New Chrome update kills wmode=transparent

查看:167
本文介绍了新的Chrome更新杀死wmode = transparent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最新版本的铬似乎已经杀死了我的SWF透明背景。在网站上,我使用闪光灯在元素顶部有一个透明的视频。不过,现在的背景是在最新版本的Chrome下黑的。

这个问题已经被问了几次了,但是没有得到任何答案。



这是我的代码:

 < 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

 < 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆