Using Dean Edwards’ IE7 Script

Posted on May 7, 2007 in Tutorial | 3 Comments »

Update

Dean Edwards has updated his scripts. I have written a new entry describing the updated IE7 scripts.

At An Event Apart Boston, Eric Meyer discussed how IE7 is quickly being adopted. Since this is the case, we can treat IE6 as more of a secondary browser now.

We should all start to use the Dean Edwards IE7 script to bring IE6 up to par with standards compliant browsers.

The history behind the Dean Edwards script is that he wrote it when Microsoft had said that they were not going to produce any more versions of Internet Explorer. He wanted to provide a JavaScript solution to add more compliance to the browser.

Using the Script

First, download the Dean Edwards script. Next, extract the files to the root of your webserver in a folder called ie7. It needs to be in this folder, because some of the scripts have a dependency on the folder.

Finally, just include the script in the head of your document using conditional comments:

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

On the configuration page, Dean shows you which scripts do what. By including the ie7-standard-p.js, you get the support of the following scripts:

  • ie7-core.js
  • ie7-html4.js
  • ie7-layout.js
  • ie7-css2-selectors.js
  • ie7-graphics.js
  • ie7-fixed.js

The only other script that I have included as well is the ie7-css3-selectors.js to include support for CSS3 selectors. Think of all those wonderful attribute selectors you can start to use in your project. It makes me all warm and tingly inside to think about where CSS can go when the browsers are up to the task.

Enjoy!

This really should be one of the first steps you take in a project. By doing this simple task, you will save yourself from a lot of IE6 headaches.

Sure, this only works for IE6 users who have JavaScript enabled. But honestly, is there anyone who is using IE6 who actually turns off JavaScript? If they do turn off JavaScript, it may just break some presentation layer things, but the site should still be perfectly usable.

3 Responses

  1. Adrian TurnerMay 8, 2007 at 8:34 am

    Did you just say warm and tingly? I’m sure you are in direct violation of some manlaw.

  2. Lisa HoppesMay 8, 2007 at 1:30 pm

    is a manlaw kind of like a mancrush?

  3. TrevorMay 8, 2007 at 1:39 pm

    Hmmm nope they definitely have their differences.

    According to The Urban Dictionary (which is absolutely a credible source of information), a Man Crush is defined as:

    When a straight man has a “crush” on another man, not sexual but kind of idolizing him.

    While a Man Law is defined as:

    The invisible yet ever powerful restrictions placed upon the actions of men that you SHOULD follow.

    Stop hating on my man crush, Lisa!

Speak Your Mind

* Denotes Required Field

  1. Sick of filling out this form? Register or Log in now.

Who Am I?

Trevor Davis I’m Trevor Davis, a 24 year old Front-End Developer. Basically, I make web sites.

By day, I work for Matrix Group International in Alexandria, VA, and by night, I freelance.

Feel free to get in touch with me about anything.

What Have I Done?

  • The MatriX Files
  • Wireless Career
  • George Washington Wired
  • Direct Selling 411
  • Makeup Bizz
  • InstallNET
  • National Park Foundation
  • Worldwide Breast Cancer

View All My Work »

Bookmarks

  • WordPress Template Tags Reference Guide

    An in depth quick reference guide of WordPress Templates Tags, reformatted from Codex.

  • Webslug

    Compare your site's performance. The "hot or not of website performance".

  • The Accessibility Checklist IV

    Nice checklist to keep in mind in order for your site be accessible.

  • Quick and Easy Flash Prototypes

    "To tackle the classic 'how to prototype rich interactions' problem, I developed a process for translating static screen designs (from wireframes to visual comps) into interactive experiences using Flash. Requiring some fairly basic ActionScript knowledge, these prototypes proved to be a quick yet powerful way to bring interaction designs to life."

  • Ask 37signals: How do you say no?

    How to say no to feature requests.

View All My Bookmarks »