<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TYPO3-Addict &#187; PNGfix</title>
	<atom:link href="http://www.typo3-addict.com/tag/pngfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.typo3-addict.com</link>
	<description>For those addicted to TYPO3</description>
	<lastBuildDate>Wed, 02 Jun 2010 13:03:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>UnitPNGfix &#8211; fix :)</title>
		<link>http://www.typo3-addict.com/2008/11/unitpngfix-fix/</link>
		<comments>http://www.typo3-addict.com/2008/11/unitpngfix-fix/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 19:02:18 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Other Webdesign Stuff]]></category>
		<category><![CDATA[PNGfix]]></category>

		<guid isPermaLink="false">http://blog.emaux.nl/?p=158</guid>
		<description><![CDATA[As you probably would have noticed sometimes IE6 still get&#8217;s broken image links while your using the unitPNGfix from Unit Interactive. This first started to appear after their last update. Just use the code below and make sure you fill in the right path to the clear.gif: var clear="clear.gif" //path to clear.gif pngfix=function() { var [...]]]></description>
			<content:encoded><![CDATA[<p>As you probably would have noticed sometimes IE6 still get&#8217;s broken image links while your using the unitPNGfix from Unit Interactive. This first started to appear after their last update.<br />
Just use the code below and make sure you fill in the right path to the clear.gif:</p>
<p><span id="more-158"></span></p>
<pre>var clear="clear.gif" //path to clear.gif

pngfix=function() {
	var els=document.getElementsByTagName('*');var ip=/.png/i;var i=els.length;while(i-- &gt;0){
		var el=els[i];
		var es=el.style;
		if(el.src&amp;&amp;el.src.match(ip)&amp;&amp;es.filter==''){
			es.height=el.height;
			es.width=el.width;
			es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+el.src+"',sizingMethod='crop')";
			// el.src="javascript:'#define x_width 1n#define x_height 1nstatic char x_bits[]={0x00}'"; !!!THIS IS THE PROBLEM MAKER!!!
			el.src="clear.gif"; //this is the changed line that caused the error to dissapear
		}
		else{
			var elb=el.currentStyle.backgroundImage;
			if(elb.match(ip)){
				var path=elb.split('"');
				var rep=(el.currentStyle.backgroundRepeat=='no-repeat')?'crop':'scale';
				es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+path[1]+"',sizingMethod='"+rep+"')";
				es.height=el.clientHeight+'px';
				es.backgroundImage='none';
				var elkids=el.getElementsByTagName('*');
				if (elkids){
					var j=elkids.length;es.position='static';
					while (j-- &gt;0)if(!elkids[j].style.position)elkids[j].style.position="relative";
				}
			}
		}
	}
}
window.attachEvent('onload',pngfix);</pre>
<p>Most of all thanks to Unit Interactive for making this fix!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2008/11/unitpngfix-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
