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.

Quick IE 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

There is also the SWF Object: SWFObject is a Javascript file used to embed Flash content. It detects the Flash plug-in in all major web browsers and is designed to make embedding Flash movies as easy as possible. Its also search engine friendly, degrades gracefully, can be used in valid HTML and XHTML 1.0 documents*, and is forward compatible, so it should work for years to come.

SWFObject has a nice little API for adding flash vars and upgrading the Flash Player.

J.

Get SWFObject