//**************************************************************************************** // Purpose: Fix for Flash "Click to Activate" (IE Only) // // Description: This script loops through all the OBJECT declarations in an HTML file and // "fools" IE into thinking each OBEJECT is not an object it needs to "block". // // Author: eric@ActionOnline.cc // // Deployed: EAS 2006-06-19 // Revised: EAS 2006-09-10 // // USEAGE: Include this file just before the tag in an HTML file. // // Supporting Doc: // http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_04160 // Documents the Flash DOM. Play below is part of the Flash DOM. // // Change Log: // 2006-09-10 - Added support for the FLASH DOM to resolve issue with "LOADER" flash // files not playing correctly. // //**************************************************************************************** // Loop through ALL objects in the document theObjects = document.getElementsByTagName('OBJECT'); for (var i = 0; i < theObjects.length; i++) { // Only implement the fix for all FLASH files NOT our imageGallery if (theObjects[i].id != 'imageGallery') { // In case the object is FLASH and is large and has still not finished loading // we need to wait for it to finish before we try to implement // our fix. var flashProp = typeof(theObjects[i].Play); var isFlash = (flashProp=='undefined') ? false : true; if (isFlash) { // it is a FLASH file (has a "Play" property // so we implement the fix for flash theObjects[i].outerHTML = theObjects[i].outerHTML; theObjects[i].Play(); } else { // The object is not FLASH, so we implement the fix the "normal" way theObjects[i].outerHTML = theObjects[i].outerHTML; } } } // alert('Objects Activated!');