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

  • vinuthomas
    Thanks for pointing that out. I've fixed it in the article
  • Rene
    Code not correct ...

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

    must be ...

    for (var i = 0; i < theObjects.length; i++ )
    ^
  • vinuthomas
    Hi Paul,

    It looks like wordpress had mangled up the code which was pasted in. I've corrected the code above.
  • 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
  • AC
    Here is a different solution that may fix the problem for your site:

    Click to activate and use this control fix
blog comments powered by Disqus