Johnny G Junior's NoteBook Treasures: Damn those Gray Box | Active X flash thing.

Wednesday, April 16, 2008

Damn those Gray Box | Active X flash thing.

Making flash objects are cool and fun, but whats not fun is those damn gray boxes that come around that flash object in IE. I mean, why do we have to click on it to make it disappear, Then the flash becomes activated. why cant it just be activited already????


Well here you go. this script will help you out.

Make a Javascript file and name it
ieupdate.js.

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


in your HTML page, lets call out the script after the LAST OBJECT -
Start Javascript and include this in the start.







*** make sure that the src is pointing to the right directory. I would suggest that you keep the html's and the js file together in the same directory so this script works on its own.

No comments: