<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: IE6 PNG Transparency Fix with Javascript</title>
	<atom:link href="http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript</link>
	<description>...looking for more than eyes can see</description>
	<lastBuildDate>Mon, 08 Mar 2010 15:53:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Regnak</title>
		<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/comment-page-1#comment-26442</link>
		<dc:creator>Regnak</dc:creator>
		<pubDate>Tue, 16 Feb 2010 16:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript#comment-26442</guid>
		<description>Version with 1.2 of mootools

// This Javascript is written by Peter Velichkov (www.creonfx.com)
// and is distributed under the following license : http://creativecommons.org/licenses/by-sa/3.0/
// Use and modify all you want just keep this comment. Thanks

function fixPNG(){
	$$(&#039;img.pngtofix&#039;).each(function(el) { 
		var imgURL = el.getStyle(&#039;background-image&#039;);
		var imgURLLength = imgURL.length;
		
		if ( imgURL != &#039;none&#039; &amp;&amp; imgURL.substring(imgURLLength  - 5, imgURLLength  - 2) == &#039;png&#039;){
			el.setStyles({
				background: &#039;&#039;,
				filter: &quot;progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=&#039;true&#039;, sizingMethod=&#039;crop&#039;, src=&#039;&quot; + imgURL.substring(5,imgURLLength  - 2) + &quot;&#039;)&quot;
			});
		};

		if(el.get(&#039;tag&#039;) == &#039;img&#039; &amp;&amp; el.getProperty(&#039;src&#039;).substring(el.getProperty(&#039;src&#039;).length  - 3) == &#039;png&#039;){
			var imgReplacer = new Element(&#039;input&#039;, {
				&#039;styles&#039;: {
					&#039;filter&#039;: &quot;progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=&#039;true&#039;, sizingMethod=&#039;crop&#039;, src=&#039;&quot; + el.getProperty(&#039;src&#039;) + &quot;&#039;)&quot;,
					&#039;position&#039;: &#039;relative&#039;,
					&#039;background&#039;: &#039;transparent&#039;
				},
				&#039;title&#039;: el.getProperty(&#039;alt&#039;)
			});
			imgReplacer.setStyles(el.getStyles(&#039;padding&#039;,&#039;margin&#039;,&#039;border&#039;,&#039;height&#039;,&#039;width&#039;));
			imgReplacer.setProperties(el.getProperties(&#039;id&#039;,&#039;class&#039;));
			imgReplacer.disabled = true;
			imgReplacer.replaces(el)
		};
	});
}</description>
		<content:encoded><![CDATA[<p>Version with 1.2 of mootools</p>
<p>// This Javascript is written by Peter Velichkov (www.creonfx.com)<br />
// and is distributed under the following license : <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="nofollow">http://creativecommons.org/licenses/by-sa/3.0/</a><br />
// Use and modify all you want just keep this comment. Thanks</p>
<p>function fixPNG(){<br />
	$$(&#8216;img.pngtofix&#8217;).each(function(el) {<br />
		var imgURL = el.getStyle(&#8216;background-image&#8217;);<br />
		var imgURLLength = imgURL.length;</p>
<p>		if ( imgURL != &#8216;none&#8217; &amp;&amp; imgURL.substring(imgURLLength  &#8211; 5, imgURLLength  &#8211; 2) == &#8216;png&#8217;){<br />
			el.setStyles({<br />
				background: &#8221;,<br />
				filter: &#8220;progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=&#8217;true&#8217;, sizingMethod=&#8217;crop&#8217;, src=&#8217;&#8221; + imgURL.substring(5,imgURLLength  &#8211; 2) + &#8220;&#8216;)&#8221;<br />
			});<br />
		};</p>
<p>		if(el.get(&#8216;tag&#8217;) == &#8216;img&#8217; &amp;&amp; el.getProperty(&#8217;src&#8217;).substring(el.getProperty(&#8217;src&#8217;).length  &#8211; 3) == &#8216;png&#8217;){<br />
			var imgReplacer = new Element(&#8216;input&#8217;, {<br />
				&#8217;styles&#8217;: {<br />
					&#8216;filter&#8217;: &#8220;progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=&#8217;true&#8217;, sizingMethod=&#8217;crop&#8217;, src=&#8217;&#8221; + el.getProperty(&#8217;src&#8217;) + &#8220;&#8216;)&#8221;,<br />
					&#8216;position&#8217;: &#8216;relative&#8217;,<br />
					&#8216;background&#8217;: &#8216;transparent&#8217;<br />
				},<br />
				&#8216;title&#8217;: el.getProperty(&#8216;alt&#8217;)<br />
			});<br />
			imgReplacer.setStyles(el.getStyles(&#8216;padding&#8217;,'margin&#8217;,'border&#8217;,'height&#8217;,'width&#8217;));<br />
			imgReplacer.setProperties(el.getProperties(&#8216;id&#8217;,'class&#8217;));<br />
			imgReplacer.disabled = true;<br />
			imgReplacer.replaces(el)<br />
		};<br />
	});<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven</title>
		<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/comment-page-1#comment-14139</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Thu, 18 Jun 2009 15:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript#comment-14139</guid>
		<description>I found your solution, but it doesn&#039;t work like I expected. So I searched along and found this awesome solution:

http://www.dillerdesign.com/experiment/DD_belatedPNG/

This is the best solution for PNGs in IE6....</description>
		<content:encoded><![CDATA[<p>I found your solution, but it doesn&#8217;t work like I expected. So I searched along and found this awesome solution:</p>
<p><a href="http://www.dillerdesign.com/experiment/DD_belatedPNG/" rel="nofollow">http://www.dillerdesign.com/experiment/DD_belatedPNG/</a></p>
<p>This is the best solution for PNGs in IE6&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/comment-page-1#comment-1096</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Thu, 10 Apr 2008 20:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript#comment-1096</guid>
		<description>@John put the link again, because currently there are only &lt;a&gt;&#039;s.

Anyway the fix for this bug is using position relative of the inner element</description>
		<content:encoded><![CDATA[<p>@John put the link again, because currently there are only &lt;a&gt;&#8217;s.</p>
<p>Anyway the fix for this bug is using position relative of the inner element</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/comment-page-1#comment-1095</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 10 Apr 2008 12:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript#comment-1095</guid>
		<description>Very good job . Its very good, but I have a small problem , when I put a png  in  a &lt;a&gt; link and I have a background image (both images are .png) link doesn&#039;t work.

for example &lt;a href=&#039;#&#039; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;

Can you help me please...</description>
		<content:encoded><![CDATA[<p>Very good job . Its very good, but I have a small problem , when I put a png  in  a <a> link and I have a background image (both images are .png) link doesn&#8217;t work.</p>
<p>for example </a><a href='#' rel="nofollow"></a></p>
<p>Can you help me please&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/comment-page-1#comment-166</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 09 Dec 2007 20:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript#comment-166</guid>
		<description>@Venelin please write in EN so everyone can understand it.

@Romain : Try this one http://blog.creonfx.com/internet-explorer/ie6-png-transparency-css-background-repeat-fix</description>
		<content:encoded><![CDATA[<p>@Venelin please write in EN so everyone can understand it.</p>
<p>@Romain : Try this one <a href="http://blog.creonfx.com/internet-explorer/ie6-png-transparency-css-background-repeat-fix" rel="nofollow">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-css-background-repeat-fix</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Romain</title>
		<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/comment-page-1#comment-153</link>
		<dc:creator>Romain</dc:creator>
		<pubDate>Wed, 05 Dec 2007 16:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript#comment-153</guid>
		<description>Hi, I&#039;ve looked at lot of different fixes for the png IE6 problem. And everytime I&#039;m bummed by the fact that you can&#039;t do a background-position with a background png image. Does the background-position work with this fix ?</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve looked at lot of different fixes for the png IE6 problem. And everytime I&#8217;m bummed by the fact that you can&#8217;t do a background-position with a background png image. Does the background-position work with this fix ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venelin</title>
		<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/comment-page-1#comment-135</link>
		<dc:creator>venelin</dc:creator>
		<pubDate>Wed, 28 Nov 2007 16:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript#comment-135</guid>
		<description>towa neshto raboti li s 24bit png prilojeni kato background repeat-x ili y?</description>
		<content:encoded><![CDATA[<p>towa neshto raboti li s 24bit png prilojeni kato background repeat-x ili y?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/comment-page-1#comment-134</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 28 Nov 2007 10:26:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript#comment-134</guid>
		<description>ok great. I&#039;m glad when i can help

i agree that for each specific project there should be modifications that are not 
currently included

Cheers</description>
		<content:encoded><![CDATA[<p>ok great. I&#8217;m glad when i can help</p>
<p>i agree that for each specific project there should be modifications that are not<br />
currently included</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitar Christoff</title>
		<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/comment-page-1#comment-132</link>
		<dc:creator>Dimitar Christoff</dc:creator>
		<pubDate>Tue, 27 Nov 2007 17:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript#comment-132</guid>
		<description>peter: yeah, i was the refactored version is nice but it was not quite suitable for my needs... 

if we ignore the isvisible / hide stuff... 

a lot of the pngs have events attached to them, eg, &quot;click&quot; or &quot;mouseenter&quot;. additionally, i have instances where i use $(&quot;imageid&quot;).fireEvent(&quot;click&quot;) from another method or function and this also fails to work... and some have opacity values that fail to get copied... 

in other words, we ended up using a modded version of the script, like a hybrid between yours... here is an example with mouseenter events attached to the pngs: http://dci.uk.net/pngfix.php

regards,
-- 
dimitar &#124; http://www.webtogs.co.uk</description>
		<content:encoded><![CDATA[<p>peter: yeah, i was the refactored version is nice but it was not quite suitable for my needs&#8230; </p>
<p>if we ignore the isvisible / hide stuff&#8230; </p>
<p>a lot of the pngs have events attached to them, eg, &#8220;click&#8221; or &#8220;mouseenter&#8221;. additionally, i have instances where i use $(&#8220;imageid&#8221;).fireEvent(&#8220;click&#8221;) from another method or function and this also fails to work&#8230; and some have opacity values that fail to get copied&#8230; </p>
<p>in other words, we ended up using a modded version of the script, like a hybrid between yours&#8230; here is an example with mouseenter events attached to the pngs: <a href="http://dci.uk.net/pngfix.php" rel="nofollow">http://dci.uk.net/pngfix.php</a></p>
<p>regards,<br />
&#8211;<br />
dimitar | <a href="http://www.webtogs.co.uk" rel="nofollow">http://www.webtogs.co.uk</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript/comment-page-1#comment-89</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 12 Nov 2007 22:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-javascript#comment-89</guid>
		<description>Dimitar, there is a refactored version of the script. Here is more info

http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-with-javascript-v20</description>
		<content:encoded><![CDATA[<p>Dimitar, there is a refactored version of the script. Here is more info</p>
<p><a href="http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-with-javascript-v20" rel="nofollow">http://blog.creonfx.com/internet-explorer/ie6-png-transparency-fix-with-javascript-v20</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
