ok... since explorer lost some legal issue with the EMBED and OBJECT issues... it causes all of our websites to have a CLICK to ACTIVATE warning on all our flash files that are embeded.


ANNNNOYING!.. Customers FLEEEEE! Panic fills web designer!!!


easy fix.



We'll use Java Script to call it up instead of the usual ways.



The scenario: Flash banner on main_page



ok.. We need to make a javascript file and we need to call it up.





Here was the original method:


I have a flash banner called paragone.swf



the old method would be to write:



<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="300" height="156" id="paragone" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="paragone.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="paragone.swf" quality="high" bgcolor="#ffffff" width="300" height="156" name="paragone" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>



now you cant use that anymore&#33;&#33;&#33;


so you need to put that code in javascript:

open up a text editor and type in:

document.write(&#39;<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"&#39;);
document.write(&#39;codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"&#39;);
document.write(&#39;WIDTH="300" HEIGHT="156" id="paragone" ALIGN="">&#39;);
document.write(&#39;<PARAM NAME=movie VALUE="paragone.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#> <EMBED src="paragone.swf" loop=false menu=false quality=high bgcolor=# WIDTH="300" HEIGHT="156" NAME="paragone" ALIGN=""&#39;);
document.write(&#39;TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>&#39;);
document.write(&#39;</OBJECT>&#39;);


you&#39;ll notice thats basically the same code but with

document.write(&#39; line of original flash text &#39;);


save it as paragone.js



now this is important... you must know what template you are using......


im using the blue_strip template


so you need to upload your paragone.js file into

includes/templates/blue_strip/jscript/

ok now...


you want to call up this function to display your flash banner.. without the annoying pop up message asking you to activate..


so write :


&#60;script src="includes/templates/blue_strip/jscript/paragone.js"></script>



This will call up the flash object.. and PRESTTO&#33;

No more annoying blocking CLICK to ACTIVATE warning&#33;&#33;&#33;


if you&#39;re reeeeeeally lazy... some one made a php script to automate the programing bit at



http://www.freddythunder.com/programs/codegen.php


Cheers

Darryl