AboutIE7.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.
StatusCurrent version: 2.1 beta3.
UsageIE7.jsUpgrade MSIE5.5-6 to be compatible with MSIE7.
IE8.jsUpgrade MSIE5.5-7 to be compatible with MSIE8.
You do not need to include IE7.js if you are using IE8.js
IE9.jsUpgrade MSIE5.5-8 to be compatible with modern browsers.
You do not need to include IE7/IE8.js if you are using IE9.js
PNGThe 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:
IE7_PNG_SUFFIX=".png";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 using background-position.
DownloadYou 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 StartedHere is a nice introduction:
http://www.charlescooke.me.uk/web/lab_notes/ie7_script.html
Demohttp://ie7-js.googlecode.com/svn/test/index.html
30 Day Summary Apr 18 2013 — May 18 2013
|
12 Month Summary May 18 2012 — May 18 2013
|
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.