<?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>新人webコーダーの覚え書き &#187; IE6対策</title>
	<atom:link href="http://kazu-memo.com/category/ie6taisaku/feed" rel="self" type="application/rss+xml" />
	<link>http://kazu-memo.com</link>
	<description>新人のwebコーダーが新しく覚えた事を忘れないようにメモするサイトです。</description>
	<lastBuildDate>Tue, 12 Jul 2011 02:27:49 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>IE6での透過PNGを有効にする</title>
		<link>http://kazu-memo.com/ie6taisaku/4.html</link>
		<comments>http://kazu-memo.com/ie6taisaku/4.html#comments</comments>
		<pubDate>Mon, 27 Sep 2010 03:16:33 +0000</pubDate>
		<dc:creator>kazu</dc:creator>
				<category><![CDATA[IE6対策]]></category>

		<guid isPermaLink="false">http://kazu-memo.com/?p=4</guid>
		<description><![CDATA[IE6では、透過PNGが透明でなく表示される。
そこで、jsを使う。
こちらを、header内に記入。pngfixの中身。
これで、IE6でも表示される♪
]]></description>
			<content:encoded><![CDATA[<p>IE6では、透過PNGが透明でなく表示される。</p>
<p>そこで、jsを使う。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!--[if lt IE 7.]&gt;
&lt;script defer type=&quot;text/javascript&quot; src=&quot;js/pngfix.js&quot;&gt;&lt;/script&gt;
&lt;![endif]--&gt;
</pre>
<p>こちらを、header内に記入。pngfixの中身。</p>
<pre class="brush: jscript; title: ; notranslate">

var arVersion = navigator.appVersion.split(&quot;MSIE&quot;)
var version = parseFloat(arVersion[1])

if ((version &gt;= 5.5) &amp;&amp; (document.body.filters))
{
   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) == &quot;PNG&quot;)
      {
         var imgID = (img.id) ? &quot;id='&quot; + img.id + &quot;' &quot; : &quot;&quot;
         var imgClass = (img.className) ? &quot;class='&quot; + img.className + &quot;' &quot; : &quot;&quot;
         var imgTitle = (img.title) ? &quot;title='&quot; + img.title + &quot;' &quot; : &quot;title='&quot; + img.alt + &quot;' &quot;
         var imgStyle = &quot;display:inline-block;&quot; + img.style.cssText
         if (img.align == &quot;left&quot;) imgStyle = &quot;float:left;&quot; + imgStyle
         if (img.align == &quot;right&quot;) imgStyle = &quot;float:right;&quot; + imgStyle
         if (img.parentElement.href) imgStyle = &quot;cursor:hand;&quot; + imgStyle
         var strNewHTML = &quot;&lt;span &quot; + imgID + imgClass + imgTitle
         + &quot; style=\&quot;&quot; + &quot;width:&quot; + img.width + &quot;px; height:&quot; + img.height + &quot;px;&quot; + imgStyle + &quot;;&quot;
         + &quot;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader&quot;
         + &quot;(src=\'&quot; + img.src + &quot;\', sizingMethod='scale');\&quot;&gt;&lt;/span&gt;&quot;
         img.outerHTML = strNewHTML
         i = i-1
      }
   }
}
</pre>
<p>これで、IE6でも表示される♪</p>
]]></content:encoded>
			<wfw:commentRss>http://kazu-memo.com/ie6taisaku/4.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
