Web Jive - The Buzz on Web Development

Tuesday, October 03, 2006

Click to Activate Flash Fix for Internet Explorer

Click to Activate

So by now you may have heard of Microsoft’s latest “pain in the”…I mean “patch” for Internet Explorer. Whenever a user comes to a page with embedded flash content, IE will display a “click to activate” message when you hover over the flash object. Here’s the latest fix/workaround for getting rid of the “click to activate” pain in 3 easy steps.

1. Place the following code in an external javascript file called external.js:

function LoadFlash1()
{
document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab #version=6,0,29,0" width="701" height="214" noexternaldata="true">\n');
document.write('<param name="movie" value="flash/car.swf" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<embed src="flash/car.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="701" height="214"></embed>\n');
document.write('</object>\n');
}

2. Put this in the head of your page:

<script src="external.js" language="JavaScript" type="text/javascript"></script>

3. Put this in the place you want the Flash to show up:

<script language="JavaScript" type="text/javascript">LoadFlash1();</script>

This should remedy your problem until Microsoft comes up with another way to make web browsing difficult on us.

1 Comments:

  • According to Microsoft, if you are having trouble with either Internet Explorer because of damaged files or missing registration information (XP registration trouble, not your name and address) you will need to either reinstall or repair the affected installation.

    By Anonymous Anonymous, at 3:11 AM  

Post a Comment

<< Home