<?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>jc-designs.net &#187; IE</title>
	<atom:link href="http://jc-designs.net/blog/tag/ie/feed/" rel="self" type="application/rss+xml" />
	<link>http://jc-designs.net/blog</link>
	<description>jc-designs blog</description>
	<lastBuildDate>Mon, 21 May 2012 19:32: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>CSS PIE: CSS3 styles for IE &#8211; easy to use and awesome</title>
		<link>http://jc-designs.net/blog/2010/08/css-pie-css3-styles-for-ie/</link>
		<comments>http://jc-designs.net/blog/2010/08/css-pie-css3-styles-for-ie/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 03:24:31 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=470</guid>
		<description><![CDATA[Flash back to&#8230; A little while back I wrote an article about getting border-radius working in IE. Well, if you haven&#8217;t been keeping up in the blogging world, I came across CSS PIE. It basically does the same thing, only more. If you use things like box-shadow, linear-gradients, AND border-radius, then this is the version [...]]]></description>
			<content:encoded><![CDATA[<h3>Flash back to&#8230;</h3>
<p>A little while back I wrote an article about <a href="http://jc-designs.net/blog/2010/07/getting-border-radius-to-work-in-ie/" target="_blank">getting border-radius working in IE</a>. Well, if you haven&#8217;t been keeping up in the blogging world, I came across CSS PIE. It basically does the same thing, only more. If you use things like box-shadow, linear-gradients, AND border-radius, then this is the version you will want to use. Basically the same call in the css file:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-moz-box-shadow<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-box-shadow<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;color: #439AD0;">;</span>
box-shadow<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;color: #439AD0;">;</span>
behavior<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">/PIE.htc</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p><span id="more-470"></span></p>
<p>The last line there is the obvious call to the htc file you have to download, which you can get <a href="http://github.com/lojjic/PIE/downloads">here</a>.</p>
<p><strong>A couple things to note:</strong><br />
1) Again, like the other one I talked about, the htc file is relative to the html file, NOT the css file. So either make it absolute from the domain root, OR, relative to the html file.<br />
2) There are issues with static positioning and background images, which you can also read about <a href="http://css3pie.com/documentation/known-issues/">here</a> (I had to find this out the hard way with the other version I used). Easy solution is to make the target have position set to relative.</p>
<p>Other than that, this works like a charm. Works on IE6-8. </p>
<h3>Conclusion</h3>
<p>Usually I am not so into these types of things because you have to add a script to make it work. Not so here, and I see no reason for not implementing this in all of my projects. All you have to do is upload the file to your server, and you are done. Well other than making all the behavior calls to it in the CSS file.</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
<div class="jBox">
<h2 class="jq">jQuery junkBox</h2>
<p><strong>$.merge();</strong><br />
This will merge the contents of two arrays together into the first array. So below, the two variables will be merged together, but uses a copy, so the original isn&#8217;t altered. You will get: ['Rocky', 'Better Off Dead', 'The Last Samurai', 'Goonies', 'Hangover', '40 Year Old Virgin']</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #003366; font-weight: bold;color: #439AD0;">var</span> myMovies1 <span style="color: #339933;color: #439AD0;">=</span> <span style="color: #009900;color: #439AD0;">&#91;</span><span style="color: #3366CC;color: #439AD0;">'Rocky'</span><span style="color: #339933;color: #439AD0;">,</span><span style="color: #3366CC;color: #439AD0;">'Better Off Dead'</span><span style="color: #339933;color: #439AD0;">,</span><span style="color: #3366CC;color: #439AD0;">'The Last Samurai'</span><span style="color: #009900;color: #439AD0;">&#93;</span><span style="color: #339933;color: #439AD0;">;</span>
<span style="color: #003366; font-weight: bold;color: #439AD0;">var</span> myMovies2 <span style="color: #339933;color: #439AD0;">=</span> <span style="color: #009900;color: #439AD0;">&#91;</span><span style="color: #3366CC;color: #439AD0;">'Goonies'</span><span style="color: #339933;color: #439AD0;">,</span><span style="color: #3366CC;color: #439AD0;">'Hangover'</span><span style="color: #339933;color: #439AD0;">,</span><span style="color: #3366CC;color: #439AD0;">'40 Year Old Virgin'</span><span style="color: #009900;color: #439AD0;">&#93;</span><span style="color: #339933;color: #439AD0;">;</span>
$.<span style="color: #660066;">merge</span><span style="color: #009900;color: #439AD0;">&#40;</span> $.<span style="color: #660066;">merge</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#91;</span><span style="color: #009900;color: #439AD0;">&#93;</span><span style="color: #339933;color: #439AD0;">,</span>myMovies1<span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">,</span> myMovies2<span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span></pre></div></div>

</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=470" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/08/css-pie-css3-styles-for-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting border-radius to work in IE</title>
		<link>http://jc-designs.net/blog/2010/07/getting-border-radius-to-work-in-ie/</link>
		<comments>http://jc-designs.net/blog/2010/07/getting-border-radius-to-work-in-ie/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 07:37:02 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=450</guid>
		<description><![CDATA[Border-radius on IE? That is just crazy! It&#8217;s funny how many things from my job come up as posts. Well, I guess not funny, because I end up working on things that I am not familiar with and have to fix. Which is the case tonight. I&#8217;m not sure if you have read any articles, [...]]]></description>
			<content:encoded><![CDATA[<h3>Border-radius on IE? That is just crazy!</h3>
<p>It&#8217;s funny how many things from my job come up as posts. Well, I guess not funny, because I end up working on things that I am not familiar with and have to fix. Which is the case tonight. I&#8217;m not sure if you have read any articles, but there are plenty, about getting the CSS3 property border-radius to work in IE. It is actually rather easy, so let&#8217;s get to it, and I&#8217;ll show you how!<br />
Actually, I&#8217;ll tell you how. And then I&#8217;ll tell you some of the troubles I ran into.</p>
<h3>Wait, that&#8217;s it?</h3>
<p>So getting your rounded corners is pretty damn easy. There are three things you have to do:</p>
<p>1) Go <a href="http://www.htmlremix.com/css/curved-corner-border-radius-cross-browser">here</a> and download the htc file.<br />
2) Place the downloaded file in your images folder<br />
3) In your CSS file, on the style that you want the rounded corners you add something like this:</p>
<p><span id="more-450"></span></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.roundedClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-border-radius<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
behavior<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/border-radius.htc</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>This being the important part:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">behavior<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/border-radius.htc</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span></pre></div></div>

<p>Where ever you are using the border-radius properties, you want the behavior added as well. Note that this does not work at all on anything in a form. So inputs, buttons, whatever&#8230;if it is in a form, I could not get this damn thing to work. Also, make the path in the behavior line relative to the document NOT the CSS file. Got it? If for instance, the .htc file is in the images folder and you are dealing with a root level document, then it would be images/border-radius.htc. If you have any questions about this, post a question in the comments section.</p>
<h3>IE8 is not very nice &#8211; pay attention here!</h3>
<p>I learned something while doing this. IE8.0.6 and IE8.0.76 handle this differently. First, the element with this property on it should be positioned to relative. If you have text on top of it, then that will have to be wrapped in something and also positioned relative. Example:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;color: #439AD0; font-weight: bold;">&lt;div class=&quot;roundedClass&quot;&gt;&lt;p class=&quot;textClass&quot;&gt;This is the text that goes on top of the rounded corners div&lt;/p&gt;&lt;/div&gt;</pre></div></div>

<p>If you did this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;color: #439AD0; font-weight: bold;">&lt;div class=&quot;roundedClass&quot;&gt;This is the text that goes on top of the rounded corners div&lt;/div&gt;</pre></div></div>

<p>Then IE8.0.76 doesn&#8217;t play nice. IE8.06 however will work fine. I have NO idea why, but that is how it is.</p>
<h3>To conclude</h3>
<p>Have two wrappers (elements)&#8230;both positioned relative, the outer has the behavior and border-radius properties. Piece of cake. This works in IE6-8, and once I figured out the two wrappers and position relative thing, everything worked beautifully. Again, if you are still confused, ask away!</p>
<p>I will leave you with a quick tip. If you have multiple tabs open in IE8, press ctrl+q. It will show all the tabs you have open in one window, which you can then pick the one you want to view. Works kind of like Apple&#8217;s Expose. I wish I had known that a while back. It is actually a feature that they should have been promoting more. Especially considering that FF4 will have this feature now as well.</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
<div class="jBox">
<h2 class="jq">jQuery junkBox</h2>
<p><strong>.detach();</strong><br />
This method will remove the matched elements from the DOM. Works kind of like .remove(), only that it keeps all the data associated with the removed elements in case you want to reinsert them back in later. So below would remove the unordered list from the element with an id of &#8216;wrapper&#8217;.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;color: #439AD0; font-weight: bold;">$<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #3366CC;color: #439AD0;">'#wrapper'</span><span style="color: #009900;color: #439AD0;">&#41;</span>.<span style="color: #660066;">detach</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #3366CC;color: #439AD0;">'ul'</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span></pre></div></div>

</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=450" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/07/getting-border-radius-to-work-in-ie/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>IE PNG problem when used with jQuery animate()</title>
		<link>http://jc-designs.net/blog/2010/07/ie-png-problem-when-used-with-jquery-animate/</link>
		<comments>http://jc-designs.net/blog/2010/07/ie-png-problem-when-used-with-jquery-animate/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 03:51:22 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=382</guid>
		<description><![CDATA[FREAKIN&#8217; AWESOME UPDATE &#8211; 08/24/11: It appears this problem is now fixed (mostly?). HUGE shout-out to Micah Topping (a commenter below) for giving the link for this. If you now look at my cog animation above in IE7/8, this now works as I want it to, with no apparent differences. I did have to place [...]]]></description>
			<content:encoded><![CDATA[<p><strong>FREAKIN&#8217; AWESOME UPDATE &#8211; 08/24/11</strong>: It appears this problem is now fixed (mostly?). HUGE shout-out to Micah Topping (a commenter below) for giving the link for this. If you now look at my cog animation above in IE7/8, this now works as I want it to, with no apparent differences. I did have to place the images within the divs rather than use a CSS background.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;color: #439AD0; font-weight: bold;">&lt;div id=&quot;myWrapper&quot;&gt;&lt;img src=&quot;images/myImage.png&quot; /&gt;&lt;/div&gt;</pre></div></div>

<p> And the CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #cc00cc;">#myWrapper</span> img <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">transparent</span><span style="color: #00AA00;color: #439AD0;">;</span>
    -ms-filter<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #ff0000;color: #439AD0;">&quot;progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)&quot;</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #808080; font-style: italic;color: #439AD0;">/* IE8 */</span>   
    filter<span style="color: #00AA00;color: #439AD0;">:</span> progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;color: #439AD0;">.Microsoft</span>.gradient<span style="color: #00AA00;color: #439AD0;">&#40;</span>startColorstr<span style="color: #00AA00;color: #439AD0;">=</span><span style="color: #cc00cc;">#00FFFFFF</span><span style="color: #00AA00;color: #439AD0;">,</span>endColorstr<span style="color: #00AA00;color: #439AD0;">=</span><span style="color: #cc00cc;">#00FFFFFF</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>   <span style="color: #808080; font-style: italic;color: #439AD0;">/* IE6 &amp; 7 */</span>      
    zoom<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>One finaly note&#8230;.I DID have to take this out of my script that I am using or it wouldn&#8217;t work. It was overwriting the filter being put on by the CSS (full script shown further down):</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #3366CC;color: #439AD0;">'filter'</span><span style="color: #339933;color: #439AD0;">:</span> <span style="color: #3366CC;color: #439AD0;">''</span></pre></div></div>

<p>Even more applause goes to Dan Tello who gave the solution <a href="http://stackoverflow.com/questions/1251416/png-transparency-problems-in-ie8">here</a>. I tried the jquery script that was provided there, but I could not get that to work.</p>
<p><strong>END OF UPDATE!</strong></p>
<p>Before I go into what I want to talk about tonight, I need to first toot my own horn a little. I received an email from one of the editors over at <a href="http://onextrapixel.com/"><strong>onextrapixel.com</strong></a>, inviting me to be a guest writer. Now who knows what will happen with that, but I am extremely excited and honored that they would ask me. I put a lot of work into The Web Machine, so I am just a little bit proud that they would ask me. I am nervous, but in a good way. Here, I can write how I want because its my blog. There, I just hope I don&#8217;t embarrass myself. Wish me luck, and I&#8217;ll keep you informed of what happens. Seriously, thanks to <a href="http://onextrapixel.com/"><strong>onextrapixel.com</strong></a> for asking. You made this blogger/web developer very happy just by doing so.</p>
<p>Now&#8230;FORWARD! Onto the meat of the post! I should warn you though, that it is partly a story too.</p>
<p>If you have been paying attention here, and reading my posts, you will notice I implemented an animation on my logo using jQuery. I&#8217;m quite proud that I got this to work with so little code. Or, at least that was what I thought. The main goal was to fade in the cogs one at a time in sequential order while moving them a certain distance to the left. Just for a refresher, here is the code again:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #003366; font-weight: bold;color: #439AD0;">var</span> cogs <span style="color: #339933;color: #439AD0;">=</span> $<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #3366CC;color: #439AD0;">'#cog1, #cog2, #cog3, #cog4, #cog5'</span><span style="color: #009900;color: #439AD0;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#123;</span><span style="color: #3366CC;color: #439AD0;">'opacity'</span> <span style="color: #339933;color: #439AD0;">:</span> <span style="color: #CC0000;color: #439AD0;">0</span><span style="color: #009900;color: #439AD0;">&#125;</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span>
	i<span style="color: #339933;color: #439AD0;">=</span><span style="color: #CC0000;color: #439AD0;">0</span><span style="color: #339933;color: #439AD0;">;</span>
	leftAmount <span style="color: #339933;color: #439AD0;">=</span> <span style="color: #CC0000;color: #439AD0;">0</span><span style="color: #339933;color: #439AD0;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;color: #439AD0;">function</span> cogMovement <span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#41;</span> <span style="color: #009900;color: #439AD0;">&#123;</span>
		$<span style="color: #009900;color: #439AD0;">&#40;</span>cogs<span style="color: #009900;color: #439AD0;">&#91;</span>i<span style="color: #339933;color: #439AD0;">++</span><span style="color: #009900;color: #439AD0;">&#93;</span><span style="color: #009900;color: #439AD0;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#123;</span>
				<span style="color: #3366CC;color: #439AD0;">'left'</span><span style="color: #339933;color: #439AD0;">:</span> <span style="color: #CC0000;color: #439AD0;">63</span> <span style="color: #339933;color: #439AD0;">*</span> leftAmount<span style="color: #339933;color: #439AD0;">++,</span>
				<span style="color: #3366CC;color: #439AD0;">'opacity'</span><span style="color: #339933;color: #439AD0;">:</span> <span style="color: #CC0000;color: #439AD0;">1</span><span style="color: #339933;color: #439AD0;">,</span>
				<span style="color: #3366CC;color: #439AD0;">'filter'</span><span style="color: #339933;color: #439AD0;">:</span> <span style="color: #3366CC;color: #439AD0;">''</span>
			<span style="color: #009900;color: #439AD0;">&#125;</span><span style="color: #339933;color: #439AD0;">,</span> <span style="color: #CC0000;color: #439AD0;">800</span><span style="color: #339933;color: #439AD0;">,</span> arguments.<span style="color: #660066;">callee</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span>
&nbsp;
	<span style="color: #009900;color: #439AD0;">&#125;</span><span style="color: #339933;color: #439AD0;">;</span>
	cogMovement<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span></pre></div></div>

<p><span id="more-382"></span></p>
<h3>The mind &#8216;bottling&#8217; problem</h3>
<p>If you are REALLY paying attention, this is not exactly the same code I used in my <a href="http://www.jc-designs.net/demo/logo.html" target="_blank">demo</a>. Please be so kind, and view that link in IE7 or 8. IE6, won&#8217;t have the same thing going on there because I am using gif&#8217;s for that browser instead of png&#8217;s for everything else. Do you see how crappy that looks? Want to know why I didn&#8217;t write a new article last night? BECAUSE I WAS RESEARCHING INTO THIS FOR OVER 2 HOURS!!</p>
<p><em>(Oh, and if you didn&#8217;t look in IE7/8, the problem is that the drop shadows on the cogs and text are solid black instead of fading nicely into the background)</em></p>
<h3>My big break</h3>
<p>I used google like I have never googled before. My big break came from going to the jQuery IRC and finally asking everyone there if they knew what was wrong. Now, at the time, I new the name from reading his blog. What I did not know, was that <a href="http://paulirish.com/">Paul Irish</a> is a jQuery Team Member. It was him who actually gave me a really good hint to how to work around this issue a little. </p>
<p>When he looked at it, he basically said nothing was wrong, that was just how IE works. Sux and sorry. I&#8217;m paraphrasing there, not actual quotes&#8230;this was late at night, and I didn&#8217;t have my Red Bull yet, so I can&#8217;t officially quote him. His little bit of help, even though I knew I didn&#8217;t have his full attention was, why not use something like .removeAttr() or something to get rid of the filter?</p>
<h3>The Solution</h3>
<p>That was when I used IE&#8217;s web developer tools and actually looked at the CSS. The stupid browser was putting the filter style on my divs with an alpha(opacity=100) for the value. I sure as hell didn&#8217;t put that there. So I tried everything with .removeAttr() to remove &#8216;style&#8217; from it. All that did was take the opacity go away completely and show the divs right from the start. I still could not get that to work. So my little work around for IE was this line in the .animate():</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #3366CC;color: #439AD0;">'filter'</span><span style="color: #339933;color: #439AD0;">:</span> <span style="color: #3366CC;color: #439AD0;">''</span></pre></div></div>

<p>Which sets the value for filter to, well&#8230;nothing. That essentially takes the fading in gradually out of the game for IE. The cogs appear, and move left, but they don&#8217;t do the fade. This is as close as I could come in IE to what I wanted. Works great in Chrome, Safari, Opera, and Firefox, but IE kicked me in the face. I&#8217;m actually ok with that, because it is better than nothing, and I got to an acceptable point.</p>
<h3>Conclusion</h3>
<p>So, the overall lesson with PNG&#8217;s in IE7/8? They work fine as statically placed images, but they do not play nicely in a jQuery animation that changes the opacity. I don&#8217;t know the technical terms of what is going on behind the scenes, but I DO know that the filter style that IE adds is the problem. After all the searching I did last night, I do not believe there is a complete solution other than what I have done.</p>
<p>PLEASE correct me if I am wrong.</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
<div class="jBox">
<h2 class="jq">jQuery junkBox</h2>
<p><strong>.removeAttr();</strong><br />
This method is really quite fitting with this post. It will remove an attribute from each element that is matched. Below, it will remove the style attribute from an element with an &#8216;id&#8217; of &#8216;myContainer.&#8217;</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;color: #439AD0; font-weight: bold;">$<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #3366CC;color: #439AD0;">'#myContainer'</span><span style="color: #009900;color: #439AD0;">&#41;</span>.<span style="color: #660066;">removeAttr</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #3366CC;color: #439AD0;">'style'</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span></pre></div></div>

</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=382" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/07/ie-png-problem-when-used-with-jquery-animate/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>

