<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>Latest snippets by user Amaury Leroux de Lens</title>
  <link rel="alternate" href="http://snippets.prendreuncafe.com/snippets/from/Amo/order_by/date"></link>
  <id>http://snippets.prendreuncafe.com/snippets/from/Amo/order_by/date</id>
  <updated>2009-03-06T21:49:22Z</updated>
  <author>
    <name>Symfony</name>
    <author_email>noreply@symfony-project.com</author_email>
  </author>
<entry>
  <title>pngFix IE 5.5 =&gt; 6</title>
  <link href="http://snippets.prendreuncafe.com/snippet/98"></link>
  <updated>2009-03-06T21:49:22Z</updated>
  <id>98</id>
  <summary type="html">[code]
var arVersion = navigator.appVersion.split(&quot;MSIE&quot;);
var version = parseFloat(arVersion[1]);

function fixPNG(myImage)
{
    if ((version &gt;= 5.5) &amp;&amp; (version &lt; 7) &amp;&amp; (document.body.filters)) 
    {
        var node = document.createElement('span');
        node.id = myImage.id;
        node.className = myImage.className;
        node.title = myImage.title;
        node.style.cssText = myImage.style.cssText;
        node.style.setAttribute('filter', &quot;progid:DXImageTransform.Microsoft.AlphaImageLoader&quot;
                                        + &quot;(src=\'&quot; + myImage.src + &quot;\', sizingMethod='scale')&quot;);
        node.style.fontSize = '0';
        node.style.width = myImage.width.toString() + 'px';
        node.style.height = myImage.height.toString() + 'px';
        node.style.display = 'inline-block';
        return node;
    }
    else
    {
        return myImage.cloneNode(false);
    }
}
[/code]

src : colorpicker.com</summary>
</entry>
</feed>
