Ezilon.com - Target Your Audience, be Seen in Your Region

Box around my Flash in IE

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 20 posts

Joined: Sep 2006

When I hover the mouse button over my flash objects in IE there is a grey rectangle around the object.
If I click on the object it goes away.
Is there anyway of getting rid of this?

Tks,

ps: my flash objects are, a slideshow and a text animation.

LenBradshaw's picture

He has: 36 posts

Joined: Nov 2006

Yes there is. The change is due to some sort of lawsuit that was settled between Microsoft Internet Explorer (I think) (and whoever else) in the way flash files can be displayed and retrieved. You'll also notice that it now takes two clicks to activate the flash. Here's the workaround:

Instead of inserting your flash file directly into the web page where you want the flash file placed, insert a javascript file insertion that says something like this:

<script src="main.js"></script>

Your "main.js" file will look like this:

document.write('')

Be sure you insert the correct width and height of your flash file.

Let me know if that helps. I do lots of pages with flash inserts and it seems to work beaurifully for me.

I admit it... I'm a geek! Check out my website.

They have: 20 posts

Joined: Sep 2006

Thanks!
However, I tried it and it didn't work.
I have lots of tags above it... wold that influence it?

Here's my code :

LenBradshaw's picture

He has: 36 posts

Joined: Nov 2006

I'm sure it will work if you set up the code exactly as I showed it. You need to set up a separate javascript file as I described in my "main.js" file and it should reside in the same directory as the page that is calling the script portion in.

I admit it... I'm a geek! Check out my website.

He has: 113 posts

Joined: Jul 2005

as far as i'm aware you cannot over-ride the focus rectangle in IE 6/7 for flash and other activex controls. its a legal requirement as microsoft was in breech of copyright somewhere along the lines. I dont know all the details.