A JavaScript library to make MSIE behave like a standards-compliant browser.
https://code.google.com/p/ie7-js/

About

IE7.js is a JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6.

Status

Current version: 2.1 beta4.

Usage

IE7.js

Upgrade MSIE5.5-6 to be compatible with MSIE7.

<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js"></script>
<![endif]-->

IE8.js

Upgrade MSIE5.5-7 to be compatible with MSIE8.

<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
<![endif]-->

You do not need to include IE7.js if you are using IE8.js

IE9.js

Upgrade MSIE5.5-8 to be compatible with modern browsers.

<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->

You do not need to include IE7/IE8.js if you are using IE9.js

PNG

The script only fixes images named: *-trans.png

If you want the fix to apply to all PNG images then set a global variable as follows:

var IE7_PNG_SUFFIX = ".png";

You must set this variable before including the IE7.js script. Alternatively, you can set the variable inside the IE7.js script element:

<script src="IE8.js">IE7_PNG_SUFFIX=".png";</script>

The suffix will ignore query string parameters. For more fine-grained control you can also set IE7_PNG_SUFFIX to a RegExp object. If you want to use an alternative PNG solution then set the suffix to something that cannot possibly match:

var IE7_PNG_SUFFIX = ":";

By default, the PNG will be stretched (this simulates tiling). If you want to turn this off then set the no-repeat property as follows:

div.example {
  background: url(my-trans.png) no-repeat;
}

Unfortunately, the transparent background image cannot be tiled (repeated) using background-repeat. Nor can it be positioned usingbackground-position.

Download

You may link directly to these files if you wish:

http://ie7-js.googlecode.com/svn/version/

Or go to the downloads section to download the current version.

Getting Started

Here is a nice introduction:

http://www.charlescooke.me.uk/web/lab_notes/ie7_script.html

Demo

http://ie7-js.googlecode.com/svn/test/index.html

612 thoughts on “ie7-js

  1. Penginapan travelling murah

    Hiya, I am really glad I’ve found this information. Today bloggers publish just about gossip and internet stuff and this is really annoying. A good website with interesting content, that is what I need. Thanks for making this web site, and I will be visiting again. Do you do newsletters by email?

  2. keluaran togel sgp

    Hiya, I am really glad I have found this info. Nowadays bloggers publish only about gossip and net stuff and this is really frustrating. A good website with interesting content, this is what I need. Thanks for making this web-site, and I’ll be visiting again. Do you do newsletters by email?

  3. Home Service

    hey there and thank you for your info – I have definitely picked up anything new from right here. I did however expertise some technical issues using this site, since I experienced to reload the web site a lot of times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I am complaining, but sluggish loading instances times will often affect your placement in google and can damage your quality score if ads and marketing with Adwords. Anyway I am adding this RSS to my email and can look out for much more of your respective exciting content. Ensure that you update this again soon..

  4. pedophile

    Good day! I simply would like to offer you a big thumbs up for the excellent information you’ve got here on this post. I’ll be coming back to your site for more soon.

  5. poker uang asli

    Hiya, I am really glad I’ve found this info. Nowadays bloggers publish just about gossip and web stuff and this is actually frustrating. A good site with exciting content, this is what I need. Thank you for making this web site, and I’ll be visiting again. Do you do newsletters by email?

  6. Homeservice Club

    I intended to post you the little bit of word to give many thanks yet again with the striking principles you have shown at this time. It was remarkably open-handed with you to give publicly exactly what many individuals would have offered for sale for an electronic book in making some profit for their own end, especially considering that you might well have done it if you ever wanted. The tips likewise served to become a fantastic way to fully grasp that someone else have similar interest similar to my very own to see a good deal more with respect to this matter. I know there are many more enjoyable opportunities in the future for individuals who look over your blog post.

  7. jual drum band

    Awesome write-up. I’m a regular visitor of your site and appreciate you taking the time to maintain the nice site. I’ll be a frequent visitor for a really long time.

  8. jual drumband

    Hiya, I’m really glad I have found this info. Today bloggers publish just about gossip and web stuff and this is really irritating. A good web site with interesting content, that is what I need. Thank you for making this web site, and I will be visiting again. Do you do newsletters by email?

  9. Auto24 De

    As I web-site possessor I believe the content material here is rattling wonderful , appreciate it for your hard work. You should keep it up forever! Best of luck.

  10. youtube apk

    Awesome write-up. I am a normal visitor of your blog and appreciate you taking the time to maintain the nice site. I will be a regular visitor for a long time.

发表评论