Safari WIndows and transparent flash

// Edit: Now the problem is Safari for Windows.

When Safari for Windows 4 came out, I started hearing from users that wmode = transparent no longer works in Safari.

I have looked at Google many times, but have not received any answers. I tried to reduce clutter using tags, not scripts for embedding Flash, but without success.

Example here: http://hiv411.org/safari.php alternately embedded with a script at http://hiv411.org/

All videos use wmode=transparent and are embedded via tags. Everything works fine in every browser except Safari.

The code looks like this on 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> 

Significant duty for any help!

+4
source share
2 answers

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)

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

+4
source

I have the same problem with Safari for Windows. But after I updated my Flash Player to version 10.0.45.2, the problem is gone. Therefore, I think this is a Flash player error.

+1
source

Source: https://habr.com/ru/post/1298939/


All Articles