TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 728
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 608
  • Total: 608

Activate Flash Automatically in IE

Started by herpherp, December 18, 2006, 02:34:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

herpherp

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...






Vno


This website is proudly hosted on Crocweb Cloud Website Hosting.