dean.edwards.name/IE7/usage/

Usage

Read the installation instructions first.

To enable IE7, simply include a reference to the relevant IE7 JavaScript library in your HTML document. That’s it.

HTML

To enable IE7 for HTML documents, include a link to the IE7 JavaScript library ie7-standard-p.js in your HTML page.

<!-- compliance patch for microsoft browsers -->
<!--[if lt IE 7]>
<script src="/ie7/ie7-standard-p.js" type="text/javascript">
</script>
<![endif]-->

You should include the script after any <meta> tags that declare a Content-type (or you may experience a bizarre bug).

I recommend wrapping the IE7 script in conditional comments. This means that for any browser other than Internet Explorer, the IE7 inclusion will be seen as a comment and it will not be loaded.

XML

To enable IE7 for XML documents, include a link to the IE7 JavaScript library ie7-standard-p.js. Please note that you must also add the html namespace prefix to the <script> tag:

<!-- compliance patch for microsoft browsers -->
<!--[if lt IE 7]>
 <html:script src="/ie7/ie7-standard-p.js" type="text/javascript">
 </html:script>
<![endif]-->

You do not need to declare the html namespace.

PNG

By default the PNG solution operates on files ending -trans.png. You can override this by setting a global variable as described on the configuration page.

Other Documents