GinGer KaT

Fix for IE treatreatment of Flash objects

September 13th, 2007 by Katrina Cole

Are you annoyed by IE treating Flash like it’s a button? I was too…here’s the solution:

**First, make a JavaScript document called “iefix.js” and put this code in it.**

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

**Then put the following code in the same div you are embedding your .swf in…like after the object tags.**

<script type=”text/javascript”
src=”../iefix.js”></script>

Sweet.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.