Flash ads require double click to open

Recentely, Microsoft released an update for Internet Explorer that changes the way the browser displays and runs flash movies, java applets and ActiveX controls.
Because of security issues the browser asks you to click and activate the controls mentioned above.

If your site displays flash ads it means that now your clients are required to click twice in order to open the ads.
In order to override and disable the extra click you’ll need to include your flash movie as an external javascript file:

Create a file (you can use notepad for this) called “load-flash.js”
The file should include the code for the embedded element you wish to display correctly (flash / ActiveX…) inside the document.write(‘ ‘); command.

For example:

document.write(‘<object height=”140″ width=”190″>
<param value=”ad_190_140.swf” name=”movie” /></object>’);

In the file (HTML / ASP / PHP)  where you originally called the ad, somply call the load-flash.js file:

<script src=”http://www.sipoor.com/load-flash.js”></script>

 That’s it, the control is loaded and activated for use.

Leave a Reply

Your email address will not be published. Required fields are marked *