IE7 ActiveX Quick Fix

Michael Moore (no, not the documentary director!) brought this little IE 7 quick fix to my attention.

Just below the last in your HTML page, insert the following Javascript:

Open a new document in Notepad or your HTML editor, and copy & paste the following content into it:


theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++)
{
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

Save this file as fixit.js

Pretty cool stuff.

For more control and some additional features there is SWFObject:

SWFObject is a JavaScript file used to embed Macromedia Flash content. The script can detect the Flash plug-in in all major web browsers. Its search engine friendly & degrades gracefully.

Check out SWFObject.

J.

About John Crosby

A former professional foodie turned keyboard-jockey in favor of a keyboard, cushy chair and cooler working conditions. I now work at Realeyes Media. I am a Partner and Senior Developer and the office Kuroko: In kabuki, the kuroko serve many of the same purposes as running crew. They move scenery and props on stage, aiding in scene changes and costume changes. They will also often play the role of animals, will-o-the-wisps, or other roles which are played not by an actor in full costume, but by holding a prop. Kuroko wear all black, head to toe, in order to imply that they are invisible and not part of the action onstage.
This entry was posted in news and tagged , , , . Bookmark the permalink.

Leave a Reply