Actionscript Safari窗口和透明闪存

Actionscript Safari窗口和透明闪存,actionscript,safari,flash,wmode,Actionscript,Safari,Flash,Wmode,//编辑:问题现在似乎仅限于Safari for Windows 大约在SafariforWindows4发布时,我开始听到用户说wmode=transparent不再在Safari中工作 我在谷歌上搜索了很多次,但没有找到任何答案。我尝试过使用标签而不是脚本来嵌入Flash,以减少干扰,但没有成功 这里有一个例子:在 所有视频都使用wmode=transparent,并通过标签嵌入。除了Safari,我所有的浏览器都可以正常工作 safari.php上的代码看起来是这样的 <object

//编辑:问题现在似乎仅限于Safari for Windows

大约在SafariforWindows4发布时,我开始听到用户说wmode=transparent不再在Safari中工作

我在谷歌上搜索了很多次,但没有找到任何答案。我尝试过使用标签而不是脚本来嵌入Flash,以减少干扰,但没有成功

这里有一个例子:在

所有视频都使用
wmode=transparent
,并通过标签嵌入。除了Safari,我所有的浏览器都可以正常工作

safari.php上的代码看起来是这样的

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" name="test" width="289" height="263" align="middle" id="test">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="swfs/BBattLeft.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />
</object>


非常感谢您的帮助

更新:问题在于windows safari的flash player,但在flash player版本10.0.45.2之后已经解决

是的,它只在Windows上使用Safari! 有趣的是,在互联网上关于这一点的文章并不多,我也遇到过同样的问题,起初我猜测bgcolor的默认值为#FFFFFF,然后我尝试将其设置为透明(不是wmode而是bgcolor!)。它仍然可以在其他浏览器中使用,但在Safari中它是绿色的(所以不要尝试!不,这个错误不是因为没有定义透明这个词!我尝试过!)。 似乎我们必须等待苹果在下一个版本中修复它,但如果您想要更改背景颜色,如果您的下方只有纯色,则可以使用:

如果您使用adobe脚本或javascript显示flash(推荐) > 如果您有php,最好使用php,因为使用js更改DOM元素会降低页面加载速度并需要javascript

<?php
//PHP
/* i like to make a .php external css style sheet
 (you have to have a transitional HTML document! 
or most browsers will not read it beacuse of difference in MIME types!)*/
function agent($browser) {
$useragent = $_SERVER['HTTP_USER_AGENT'];
return strstr($useragent,$browser);
}
       if(agent("Safari") != FALSE) {
              if(agent("Windows") != FALSE)  { // on windows
?>
#myflash {display:none;}
#verisignflash {z-index:-100; /* for example I already made #000 bgcolor for this and looks right*/
<?php } //All Safari's }

#myflash{显示:无;}
#verisingflash{z-index:-100;/*例如,我已经为此制作了#000 bgcolor,看起来不错*/
<?php
}//所有野生动物园
}
。。。然后,Safari的代码与其他代码一般都是兼容的!但是,您可以在此处添加和else语句并将它们分开


如果有人找到更好的选择,我会很高兴在这里阅读

我对Safari for Windows也有同样的问题。 但在我将Flash播放器升级到10.0.45.2版之后, 问题已经解决了。
所以我认为这是一个Flash播放器错误。

也为我修复了它!谢谢你的提醒!

 <param name="wmode" bgcolor="#xxxxxx" value="transparent">

 <embed wmode="transparent" bgcolor="#xxxxxx">

//Javascript: 
var isSafari = (navigator.userAgent.indexOf("Safari") != -1) ? true : false;
var isWindows = (navigator.userAgent.indexOf("Windows") != -1) ? true : false;
if (isSafari && isWindows) document.getElementById('yourflashid').style.display = 'none';
if (isSafari && isWindows) document.getElementById('yourflashid').style.Zindex = '-1000';
<?php
//PHP
/* i like to make a .php external css style sheet
 (you have to have a transitional HTML document! 
or most browsers will not read it beacuse of difference in MIME types!)*/
function agent($browser) {
$useragent = $_SERVER['HTTP_USER_AGENT'];
return strstr($useragent,$browser);
}
       if(agent("Safari") != FALSE) {
              if(agent("Windows") != FALSE)  { // on windows
?>
#myflash {display:none;}
#verisignflash {z-index:-100; /* for example I already made #000 bgcolor for this and looks right*/
<?php } //All Safari's }