What a Big Big World

Get rid of box around active content in IE

Posted in Funny by Jan on January 15, 2007

Reference: Adobe Developer Center | Download the Javascript file (ZIP, 124K)

Step 1. Create an external Javascript file (let’s call it “foo.js”):

function RunFoo()
{
   document.write('<object classid="clsid:D27CDB6E..." ... height="200">n');
   document.write('<param name="movie" value="foo.swf" />n');
   document.write('<param name="quality" value="high" />n');
   document.write('<embed src="foo.swf" ... height="200"></embed>n');
   document.write('</object>n');
}

Step 2. Add a JavaScript include statement that points to the JavaScript file from step 1 to the <head> section of the web page that embeds the content:

<script src="[path]/foo.js" type="text/javascript"></script>

Step 3. Replace each <object>, <embed>, or <applet> tag with a call to the appropriate external file:

<script type="text/javascript">RunFoo();</script>

Leave a Reply