Home » Useful Articles » Remove gray border around flash in IE7 browser

Remove gray border around flash in IE7 browser


Step 1 : Create a Filename : ieupdate.js

Step 2 : Copy the below code in to "ieupdate.js"

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

Step 3 : Just below the last <object></object> in your HTML page, insert the following Javascript:

<script type="text/javascript" src="ieupdate.js"></script>

eg. :

<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">
<param name=quality value=high>
<embed src="file.swf" quality=high pluginspage="" type="application/x-shockwave-flash" ">
</embed>
</object>
<script type="text/javascript" src="ieupdate.js"></script>

Thats all :)