<?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>Mitch Canter is [studionashvegas] &#187; Alpha</title>
	<atom:link href="http://www.studionashvegas.com/tag/alpha/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.studionashvegas.com</link>
	<description>Nashville, TN&#039;s Best WordPress Designer/Developer</description>
	<lastBuildDate>Tue, 07 Feb 2012 17:42:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Transparent PNG in IE6 &#8211; JavaScript</title>
		<link>http://www.studionashvegas.com/old-posts/transparent-png-in-ie6-javascript/</link>
		<comments>http://www.studionashvegas.com/old-posts/transparent-png-in-ie6-javascript/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 16:00:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Old Posts]]></category>
		<category><![CDATA[Alpha]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PNG]]></category>

		<guid isPermaLink="false">http://www.studionashvegas.com/?p=113</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.studionashvegas.com/category/old-posts/" title="Old Posts">Old Posts</a></p>There are a lot of fixes for Alpha PNG transparancy in Internet Explorer 6.  They all have their pros and cons, but I love]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.studionashvegas.com/category/old-posts/" title="Old Posts">Old Posts</a></p><p>There are a lot of fixes for Alpha PNG transparancy in Internet Explorer 6.  They all have their pros and cons, but I love this one because (unlike some other fixes) it covers every image at once.  That way, you can put in a lot of transparent images and get a massive fix for all.</p>
<pre style="padding-left: 30px;">&lt;!--[if gte IE 5.5000]&gt;
&lt;script language="JavaScript"&gt;
function correctPNG()
{
   for(var i=0; i&lt;document.images.length; i++)
   {
      var img = document.images[i]
      var imgName = img.src.toUpperCase()

      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText

         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle

         var strNewHTML = "&lt;span " + imgID + imgClass + imgTitle
             + " style="" + "width:" + img.width + "px; height:" + img.height + "px;"
             + imgStyle + ";"      + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
             + "(src='" + img.src + "', sizingMethod='scale');"&gt;&lt;/span&gt;"

         img.outerHTML = strNewHTML
         i = i-1
      }
   }
}
window.attachEvent("onload", correctPNG);
&lt;/script&gt;
&lt;![endif]--&gt;</pre>
<p>The only downside: any transparent parts of the image will not be clickable for hyperlink purposes.  If you have a white logo on a transparent background, for example, you can only click on the white parts, and not the image as a whole.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.studionashvegas.com/old-posts/transparent-png-in-ie6-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 3/13 queries in 0.014 seconds using disk: basic
Object Caching 419/434 objects using disk: basic
Content Delivery Network via cdn.studionashvegas.com

Served from: www.studionashvegas.com @ 2012-02-08 21:31:13 -->
