<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: CSS Opacity and Flash Transparency in Mac Firefox</title>
	<atom:link href="http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/</link>
	<description>brain_get_contents(jake_olsen);</description>
	<pubDate>Sun, 12 Oct 2008 22:05:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Chad Rainey</title>
		<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-57142</link>
		<dc:creator>Chad Rainey</dc:creator>
		<pubDate>Mon, 08 Sep 2008 14:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-57142</guid>
		<description>Yes, thank you!  Very odd problem, but getting rid of transparency worked for me!</description>
		<content:encoded><![CDATA[<p>Yes, thank you!  Very odd problem, but getting rid of transparency worked for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twansparant</title>
		<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-56545</link>
		<dc:creator>Twansparant</dc:creator>
		<pubDate>Fri, 05 Sep 2008 09:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-56545</guid>
		<description>Hi everyone,

I'm having the same problems as you guys, but my workaround doesn't seem to work yet...
I want to replace the .swf for a .gif or .jpg if someone uses FF2 or FF3 on a Mac.
In FF2 the swf dissapears entirely, and in FF3 the div starts to flickr when hovering over the menu-items.
I'm not really a Javascript expert so I don't know exactly how to achive this.
This is my javascript so far thanks to this post:

function detectMacXFF2() {
				var userAgent = navigator.userAgent.toLowerCase();
				if (userAgent.indexOf('mac') != -1 &#38;&#38; userAgent.indexOf('firefox')!=-1) {
					middle.write("swf/welcome.gif");
				} else
					var so = new SWFObject("swf/welcome.swf", "Flash", "960", "580", "6", "transparant");
					so.addParam("scale", "noscale");
					so.addParam("allowScriptAccess", "SameDomain");	
					so.addParam("quality", "high");
					so.addParam("wmode","transparent");
					so.write("middle");


With this javascript the .swf dissapears in every browser.
Maybe someone can take a look?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi everyone,</p>
<p>I&#8217;m having the same problems as you guys, but my workaround doesn&#8217;t seem to work yet&#8230;<br />
I want to replace the .swf for a .gif or .jpg if someone uses FF2 or FF3 on a Mac.<br />
In FF2 the swf dissapears entirely, and in FF3 the div starts to flickr when hovering over the menu-items.<br />
I&#8217;m not really a Javascript expert so I don&#8217;t know exactly how to achive this.<br />
This is my javascript so far thanks to this post:</p>
<p>function detectMacXFF2() {<br />
				var userAgent = navigator.userAgent.toLowerCase();<br />
				if (userAgent.indexOf(&#8217;mac&#8217;) != -1 &amp;&amp; userAgent.indexOf(&#8217;firefox&#8217;)!=-1) {<br />
					middle.write(&#8221;swf/welcome.gif&#8221;);<br />
				} else<br />
					var so = new SWFObject(&#8221;swf/welcome.swf&#8221;, &#8220;Flash&#8221;, &#8220;960&#8243;, &#8220;580&#8243;, &#8220;6&#8243;, &#8220;transparant&#8221;);<br />
					so.addParam(&#8221;scale&#8221;, &#8220;noscale&#8221;);<br />
					so.addParam(&#8221;allowScriptAccess&#8221;, &#8220;SameDomain&#8221;);<br />
					so.addParam(&#8221;quality&#8221;, &#8220;high&#8221;);<br />
					so.addParam(&#8221;wmode&#8221;,&#8221;transparent&#8221;);<br />
					so.write(&#8221;middle&#8221;);</p>
<p>With this javascript the .swf dissapears in every browser.<br />
Maybe someone can take a look?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tapani Siirtola</title>
		<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-55382</link>
		<dc:creator>Tapani Siirtola</dc:creator>
		<pubDate>Mon, 01 Sep 2008 11:12:30 +0000</pubDate>
		<guid isPermaLink="false">http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-55382</guid>
		<description>I'm having also problems with box and flash. However I'm using PC &#38; FF3. What ever I do, the flash content of the page is going on the thickbox. Visit the link and test how it is not working.

I've tried to use z-index settings and transparency settings for flash params, but nothing seems to have effect.

Can anyone help me? Does code that is given on this blog help me and where should I put it?

Thanks, and please help a noob here..</description>
		<content:encoded><![CDATA[<p>I&#8217;m having also problems with box and flash. However I&#8217;m using PC &amp; FF3. What ever I do, the flash content of the page is going on the thickbox. Visit the link and test how it is not working.</p>
<p>I&#8217;ve tried to use z-index settings and transparency settings for flash params, but nothing seems to have effect.</p>
<p>Can anyone help me? Does code that is given on this blog help me and where should I put it?</p>
<p>Thanks, and please help a noob here..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-53943</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 26 Aug 2008 20:12:19 +0000</pubDate>
		<guid isPermaLink="false">http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-53943</guid>
		<description>I use Allwebmenus and when I try to use the thickbox, the menu is on top of the photo.  What do I do to correct this?

http://www.americanamedia.com/test/holder/photos/photos_new.htm</description>
		<content:encoded><![CDATA[<p>I use Allwebmenus and when I try to use the thickbox, the menu is on top of the photo.  What do I do to correct this?</p>
<p><a href="http://www.americanamedia.com/test/holder/photos/photos_new.htm" rel="nofollow">http://www.americanamedia.com/test/holder/photos/photos_new.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iulian</title>
		<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-52271</link>
		<dc:creator>iulian</dc:creator>
		<pubDate>Wed, 20 Aug 2008 06:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-52271</guid>
		<description>Please help me... I tried implementing the hack, but no luck... anyone has any ideas why it's not working on my site (ditzah.com)?

Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Please help me&#8230; I tried implementing the hack, but no luck&#8230; anyone has any ideas why it&#8217;s not working on my site (ditzah.com)?</p>
<p>Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eileen</title>
		<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-51591</link>
		<dc:creator>Eileen</dc:creator>
		<pubDate>Sun, 17 Aug 2008 20:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-51591</guid>
		<description>I have run into the same issue, and could not test for it, because I do not have a MAC.

But the bug was reported to me, by a few people using my code.

In my case, I can not use any sort of scripting, to test for platform.
I am limited to css.  (myspace)

Because I had a similar issue in the PC version of Safari, which I was testing for,  I resorted to -moz-opacity (using an alpha filter for IE) so that the functionality was completely disabled in all but Mozilla (including FireFox) and IE.
No effect, was preferable to the bug.  

Is there a solution, using css only, that will make the opacity work on the PC version of FireFox and NOT do anything on the MAC version of FireFox?

I am playing with some pseudo classes, to see if any are recognized on one platform and not the other.
(This is how I often do browser specific css coding), but I am not finding anything that works here.</description>
		<content:encoded><![CDATA[<p>I have run into the same issue, and could not test for it, because I do not have a MAC.</p>
<p>But the bug was reported to me, by a few people using my code.</p>
<p>In my case, I can not use any sort of scripting, to test for platform.<br />
I am limited to css.  (myspace)</p>
<p>Because I had a similar issue in the PC version of Safari, which I was testing for,  I resorted to -moz-opacity (using an alpha filter for IE) so that the functionality was completely disabled in all but Mozilla (including FireFox) and IE.<br />
No effect, was preferable to the bug.  </p>
<p>Is there a solution, using css only, that will make the opacity work on the PC version of FireFox and NOT do anything on the MAC version of FireFox?</p>
<p>I am playing with some pseudo classes, to see if any are recognized on one platform and not the other.<br />
(This is how I often do browser specific css coding), but I am not finding anything that works here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-49263</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 07 Aug 2008 02:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-49263</guid>
		<description>haha indents didnt work... sorry for triple comment!</description>
		<content:encoded><![CDATA[<p>haha indents didnt work&#8230; sorry for triple comment!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-49262</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 07 Aug 2008 02:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-49262</guid>
		<description>Again, with indented code :D

&lt;code&gt;
function detectMacXFF2() {
    var userAgent = navigator.userAgent.toLowerCase();
    if (/firefox[\/\s](\d+\.\d+)/.test(userAgent)) {
        var ffversion = new Number(RegExp.$1);
        if (ffversion &#60; 3 &#38;&#38; userAgent.indexOf(’mac’) != -1) {
            return true;
        }
        else
            return false;
    }
    else
        return false;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Again, with indented code <img src='http://jakeo.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><code><br />
function detectMacXFF2() {<br />
    var userAgent = navigator.userAgent.toLowerCase();<br />
    if (/firefox[\/\s](\d+\.\d+)/.test(userAgent)) {<br />
        var ffversion = new Number(RegExp.$1);<br />
        if (ffversion &lt; 3 &amp;&amp; userAgent.indexOf(’mac’) != -1) {<br />
            return true;<br />
        }<br />
        else<br />
            return false;<br />
    }<br />
    else<br />
        return false;<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-49261</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 07 Aug 2008 01:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-49261</guid>
		<description>Hi, your code seems incorrect, and is detecting FF3 and Safari on a mac.

Heres a fix:

&lt;code&gt;
function detectMacXFF2() {
  var userAgent = navigator.userAgent.toLowerCase();
  if (/firefox[\/\s](\d+\.\d+)/.test(userAgent)) {
    var ffversion = new Number(RegExp.$1);
    if (ffversion &#60; 3 &#38;&#38; userAgent.indexOf('mac') != -1) {
      return true;
    }
    else
        return false;
  }
  else
        return false;
}
&lt;/code&gt;

Notice the addition of return false following the conditional.

Thanks for this great function, saved me a lot of time figuring it out on scratch. Had the same weird bug with opacity on top of flash.</description>
		<content:encoded><![CDATA[<p>Hi, your code seems incorrect, and is detecting FF3 and Safari on a mac.</p>
<p>Heres a fix:</p>
<p><code><br />
function detectMacXFF2() {<br />
  var userAgent = navigator.userAgent.toLowerCase();<br />
  if (/firefox[\/\s](\d+\.\d+)/.test(userAgent)) {<br />
    var ffversion = new Number(RegExp.$1);<br />
    if (ffversion &lt; 3 &amp;&amp; userAgent.indexOf(&#8217;mac&#8217;) != -1) {<br />
      return true;<br />
    }<br />
    else<br />
        return false;<br />
  }<br />
  else<br />
        return false;<br />
}<br />
</code></p>
<p>Notice the addition of return false following the conditional.</p>
<p>Thanks for this great function, saved me a lot of time figuring it out on scratch. Had the same weird bug with opacity on top of flash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin C</title>
		<link>http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-49153</link>
		<dc:creator>Kevin C</dc:creator>
		<pubDate>Wed, 06 Aug 2008 15:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/#comment-49153</guid>
		<description>I also found that the opacity needs to be set apart from in FF2. In other words, it can't be set in a CSS file and then manipulated via DOM node properties for FF2.

To accomplish this, and since there are several places in the app I'm working on where different opacities are set, I split the rules out into different stylesheets: 1 main file, 1 non-ff2-mac file, and 1 ff2-mac file:

if (detectMacXFF2()) {
  // attach the Firefox 2 Mac stylesheet
  var CSSFile = 'ff2_mac.css';
} else {
  // attach the one for everyone else
  var CSSFile = 'non_ff2_mac.css';
}

var cssNode = document.createElement('link');
cssNode.type = 'text/css';
cssNode.rel = 'stylesheet';
cssNode.href = base_url + '/stylesheets/' + CSSFile;
document.getElementsByTagName("head")[0].appendChild(cssNode);


This, along with the detectMacXFF2() function definition are wrapped in a small js file.  Looking forward to the day when FF2 is obsolete (probably about the time we can all bury our hacks for IE 6), it'll be a lot easier to clean the code back up.

Thanks much for the tip; saved much time!!!!</description>
		<content:encoded><![CDATA[<p>I also found that the opacity needs to be set apart from in FF2. In other words, it can&#8217;t be set in a CSS file and then manipulated via DOM node properties for FF2.</p>
<p>To accomplish this, and since there are several places in the app I&#8217;m working on where different opacities are set, I split the rules out into different stylesheets: 1 main file, 1 non-ff2-mac file, and 1 ff2-mac file:</p>
<p>if (detectMacXFF2()) {<br />
  // attach the Firefox 2 Mac stylesheet<br />
  var CSSFile = &#8216;ff2_mac.css&#8217;;<br />
} else {<br />
  // attach the one for everyone else<br />
  var CSSFile = &#8216;non_ff2_mac.css&#8217;;<br />
}</p>
<p>var cssNode = document.createElement(&#8217;link&#8217;);<br />
cssNode.type = &#8216;text/css&#8217;;<br />
cssNode.rel = &#8217;stylesheet&#8217;;<br />
cssNode.href = base_url + &#8216;/stylesheets/&#8217; + CSSFile;<br />
document.getElementsByTagName(&#8221;head&#8221;)[0].appendChild(cssNode);</p>
<p>This, along with the detectMacXFF2() function definition are wrapped in a small js file.  Looking forward to the day when FF2 is obsolete (probably about the time we can all bury our hacks for IE 6), it&#8217;ll be a lot easier to clean the code back up.</p>
<p>Thanks much for the tip; saved much time!!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
