ie7-js: a javascript to make Internet Explorer render better
January 15, 2008 2 comments
I know that there is a ie7-js, a javascript file that makes the Internet Explorer behave as if it were a "standards compliant browser", that is, the versions of IE from 5 up to 6, setting up as IE 7!
I saw in the feed of the project.47 something very good: a script (javascript) to give in a way that renders half-mouth found in earlier versions of Internet Explorer, that is, corrects a number of errors of rendering in HTML and CSS: this is the ie7-js.
It is very simple: just enter the script on the pages you want renderizadas in IEs 5-6 as if they were IE 7! Probably will be in all, is not it? ;-)
There is also a script for rendering as Internet Explorer 8, but this is still beta, for obvious reasons.
Attention to one thing: the rendering of web pages, the browser vai reading line by line, when faced with a call to javascript foreign (that is recommended, for reasons of separation of development in layers), the rendering is suspended until he the script is fully loaded.
With that in mind, it should be, in time to enter a javascript, choose carefully whether this will be called soon in the header of the document (head) or the end of the whole page (before closing the tag "body"). Depending on what the script does and the need, it is inadvisable that if the call right at the top of the page, in other times, it is essential!
I think this is the case with ie7-js, to say, you should call it in the header of the document so that its effects are put into practice as soon as possible and the pages are renderizadas as Internet Explorer 7!
In addition to this wonder of changing the rendering of pages, the javascript also provides the functionality to place transparent PNG files in earlier versions of IE to 7. But there is one condition for it… Be sure to visit the official page of the script to learn more about!
And one final reminder: it is a javascript, to remember this well, therefore, nothing to overlook the tests in previous versions of Internet Explorer! After all, you never know if the visitor vai be with the javascript enabled or not!














Great observation at the end of the post!
We should not forget that this is a JavaScript and therefore a user who is disabled with this feature, not see your site correctly, which will affect (and much) the quality of the project.
I, too, to thank the reference to project.47!
Abraço.
Certainly, Carlos!
A major "poréns" the development site is not able to specify ways that the visitor reaches the web sites: screen resolution, colors, images enabled or not, javascript enabled or not, and so on.
A good web design must take into account most of the possibilities!
And congratulations on project.47! I am a fan of "Friday fairs of web standards"!
Certainly this will not be the last reference that I will…:-D