18 May 2006 View Comments

FIX IT – Click to activate and use this control – Flash | I.E | Problem

Since Microsoft lost a legal battle on how they display multimedia conent in their browser, they’ve had to the change the way these content displays on screen. Now a user has to click these elements to start playing the flash animation.

This affects Flash files, QuickTime, RealPlayer, Java , Adobe Acrobat among others. It means users have to click the object first in order to activate its functions.

To fix the problem, please follow these steps:

1) Just below the last <object> in your HTML page, insert the following Javascript:


2) Open a new document in Notepad or your HTML editor, and copy & paste the following content into it:

theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++ )
{
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

3) Save this file as fixit.js

Thanks to Mix FX for this info: FIX IT – Click to activate and use this control – Flash | Java | I.E | Problem

Tags:

View Comments to “FIX IT – Click to activate and use this control – Flash | I.E | Problem”

  1. Dan 9 June 2006 at 8:25 pm #

    This one doesnt work for me, it never loads in the swf unfortuneately.

  2. AC 19 June 2006 at 7:55 pm #

    Here is a different solution that may fix the problem for your site:

    Click to activate and use this control fix

  3. PaulE 26 September 2006 at 7:55 pm #

    For me it causes pages to not work and to fail validation. Validation fails for unknown attribute “mce_src” and “xsrc”. A quick check shouws these attributes are not validat html or xhtml.
    What are they?
    thanks

  4. vinu 27 September 2006 at 9:13 am #

    Hi Paul,

    It looks like wordpress had mangled up the code which was pasted in. I’ve corrected the code above.

  5. Rene 19 December 2008 at 8:44 pm #

    Code not correct …

    for (var i = 0; i < theObjects.length; i )

    must be …

    for (var i = 0; i < theObjects.length; i++ )
    ^

  6. vinu 20 December 2008 at 9:25 am #

    Thanks for pointing that out. I’ve fixed it in the article


Leave a Reply

blog comments powered by Disqus