How to remove dotted line that appears on hover in IE 6

If you take mouse over flash or java applet object , a dotted line appears outlining the window on IE. after you’ve clicked to activate the album it disappears. but it spoils the first impressions. how do you remove this?

let you have

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="500" height="61" id="index" align="middle">
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://www.mydomain.com/flash/index.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="http://www.mydomain.com/flash/index.swf" quality="high" wmode="transparent" width="500" height="61" name="index" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

for IE, detect the browser, write the following in a js file and include the file:

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="500" height="61" id="index" align="middle">');
//document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="allowFullScreen" value="false" />');
document.write('<param name="movie" value="http://www.mydomain.com/flash/index.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="http://www.mydomain.com/flash/index.swf" quality="high" width="500" height="61" name="index" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');

That’s it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s