TinyPortal

Development => Block Codes => Topic started by: herpherp on December 18, 2006, 02:34:48 AM

Title: Activate Flash Automatically in IE
Post by: herpherp on December 18, 2006, 02:34:48 AM
Sorry If this is in the wrong cat...


Been working on my site for a few days and when I added the arcade I started getting annoyed with the Click to activate message!

Well I hadn't found a solution on the forums (doesn't mean I didn't miss it)...

Here's what worked for me...

Open text editor and paste
objects = document.getElementsByTagName("embed");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}


save as activate-flash.js and upload to your root forum directory

Then simply paste this at the end of one of your blocks or create a new html block (if using a seperate block select not to show title and frame so that you do not just have an empty block)

<script type="text/javascript" src="activate-flash.js">


I simply added this after all the code in one of the top score blocks....

I've included the .js and instructions attached below as well....


Thank you all for all your support and hope this helps someone...





Title: Re: Activate Flash Automatically in IE
Post by: Vno on August 02, 2007, 12:48:38 AM
Works great!!!... FRee Bump! :D