<p>As I have noted in previous posts: <a href="//trevor-davis.com/blog/tutorial/using-dean-edwards-ie7-script/">Using Dean Edwards’ IE7 Script</a>, <a href="//trevor-davis.com/blog/tutorial/the-ultimate-png-guide/">The Ultimate PNG Guide</a>, I am a big advocate of the Dean Edwards’ IE7 scripts.</p>

<p>Thankfully, <a href="http://dean.edwards.name/weblog/2008/01/ie7-2/">Dean has improved them even more</a>. Instead of having a ton of different JavaScript files with large file sizes, he has compressed them into two light-weight JavaScript files.</p>

<p>The are now two scripts, <a href="//trevor-davis.com/ie7/IE7.js">IE7.js</a> and <a href="//trevor-davis.com/ie7/IE8.js">IE8.js</a>, and they are <a href="http://code.google.com/p/ie7-js/">hosted on Google Code</a>. The IE7.js file “fixes” IE5 and IE6 so that it is up to par with IE7. Then, IE8.js adds in some additional functionality that is missing from IE7. <strong>Note:</strong> If you include IE8.js, you <strong>do not</strong> need to include IE7.js.</p>

<h2 class="replaceHeadline">Usage</h2>
<p>There are a couple of different options here, you can either download the files and place them on your server or link directly to the Google Code version.</p>

<h3 class="replaceHeadline">Option 1: Download Files</h3>
<ol><li><a href="http://ie7-js.googlecode.com/files/ie7-2.0%28beta%29.zip">Download the ZIP file</a>.</li>
<li>Extract the IE7 folder to the root of your server.</li>
<li><p>Include the script in the head of your document:</p>
<div class="codeblock"><code>
&lt;!--[if lt IE 7]&gt;<br />&lt;script src="/ie7/IE8.js" type="text/javascript"&gt;&lt;/script&gt;<br />&lt;![endif]--&gt; 

</code></div>
<p>In this example, I am targeting all versions of Internet Explorer less than IE7, and applying the IE8 script to it. Or, you could apply the IE7 script instead, I just wanted the advanced CSS functionality.</p>
<p>You could also set it so that it is applied in IE7 as well:</p>
<div class="codeblock"><code>
&lt;!--[if lte IE 7]&gt;<br />&lt;script src="/ie7/IE8.js" type="text/javascript"&gt;&lt;/script&gt;<br />&lt;![endif]--&gt; 

</code></div>
</li>
<li>Open IE6 and enjoy some things not being broken.</li>
</ol><h3 class="replaceHeadline">Option 2: Link to Google Code Files</h3>
<ol><li><a href="http://ie7-js.googlecode.com/svn/version/">Find the version of the file you want to use</a></li>
<li>Copy the URL, ex: <a href="http://ie7-js.googlecode.com/svn/version/2.0(beta)/IE8.js">http://ie7-js.googlecode.com/svn/version/2.0(beta)/IE8.js</a></li>
<li><p>Include the script in the head of your document:</p>
<div class="codeblock"><code>
&lt;!--[if lt IE 7]&gt;<br />&lt;script src="http://ie7-js.googlecode.com/svn/version/2.0(beta)/IE8.js" type="text/javascript"&gt;&lt;/script&gt;<br />&lt;![endif]--&gt; 

</code></div>
</li>
<li>Smile, you just “fixed” IE6.</li>
</ol><p>Hopefully that should get you started with what you need. My previous articles: <a href="//trevor-davis.com/blog/tutorial/using-dean-edwards-ie7-script.php">Using Dean Edwards’ IE7 Script</a>, <a href="//trevor-davis.com/blog/tutorial/the-ultimate-png-guide.php">The Ultimate PNG Guide</a> have some other details about the previous version of the script, some of which still apply.</p>

<p>Let me know if you have questions.</p>