Forum Moderators: open

Message Too Old, No Replies

Gray line appears around flash image when you rollover it

         

LABachlr

6:39 am on Mar 10, 2007 (gmt 0)

10+ Year Member



For some reason, when I put my cursor over a flash image that is embedded in an HTML page, a gray line appears around the image when viewing it via Internet Explorer. However, this does not happen when viewing it with Firefox.

This happened after a web designer updated the page. It did not do this before the update. How can this be fixed?

dreamcatcher

2:42 pm on Mar 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



IE cannot directly interact with Microsoft ActiveX controls loaded by the APPLET, EMBED, or OBJECT elements. Some kind of new ruling that was bought in, I think during ie6.

The workaround is you have to write the object tag code using a javascript document.write from a .js file.

As an example, create a .js file with your flash code:

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" id=file width=220 height=257>');
document.write('<param name=movie value="file.swf">');
document.write('<param name=quality value=high>');
document.write('<param name=loop value=false>');
document.write('<embed src="file.swf" loop=false quality=high width=220 height=257 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash">');
document.write('</embed>');
document.write('</object>');

Then where you want your flash to appear in your HTML do,

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

Good luck.

dc

LABachlr

5:40 pm on Mar 12, 2007 (gmt 0)

10+ Year Member



OK. Thanks.