UPDATE: The problem with the flash player for safari windows, but was resolved after the version of Flash Player version 10.0.45.2
Yes, this is only with Safari on Windows! And it is interesting that little is written about this on the Internet. I experienced the same problem. At first, I guessed that it had a default value of #FFFFFF for bgcolor, and I tried to set it to transparency (not wmode, but bgcolor!). it still works in any other browser, but it is green in Safari (so do not try to do it!), and there is no error that the word transparent is not defined! I tried!). It seems that we should wait for the apple to fix it in future versions, but if you want to change the background color, if you only have a solid color, you can use:
if you use adobe script or javascript to display flash (recommended)
<script src="[adobe flash detector script]"> AC_FL_RunContent( 'wmode', 'transparent','bgcolor', 'xxxxxx'); </script>
>
else if you use embed and / or for <noscript>:
<param name="wmode" bgcolor="#xxxxxx" value="transparent">
... also
<embed wmode="transparent" bgcolor="#xxxxxx">
if you want to define a safari on windows and not display it - or maybe give a minimum of zindex:
//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';
> if you have php, it is better to do this with php, as changing the DOM elements with js slows down the page loading and requires 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 }... and then the code for Safari in general, like the rest, seems compatible! however, you can add another expression here and separate them
If someone finds a better option, I will be happy to read it here!