JavaScript [FIX] Macromedia Flash - 单击参数激活控件 - 单击以激活控件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JavaScript [FIX] Macromedia Flash - 单击参数激活控件 - 单击以激活控件相关的知识,希望对你有一定的参考价值。

fix.js:
/*******************************************/
function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            oldonload();
            func();
        }
    }
}
var fixObjects = function() {
	objects = document.getElementsByTagName("object");
	for (var i = 0; i < objects.length; i++)
	{
	    objects[i].outerHTML = objects[i].outerHTML;
	}
};
addLoadEvent(fixObjects);
/*******************************************/

index.html:
/*******************************************/
<html>

<head>
  <title></title>
  <script>
    function aler()
    {
    	alert('a ver si anda');
    }
  </script>
</head>

<body onLoad="aler();"> <!-- si tiene o no una funcion en el OnLoad, el script funciona igual -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="760" height="100">
<param name=movie value="http://dsnet.com.ar/intro3.swf">
<param name=quality value=high>
<embed src="http://dsnet.com.ar/intro3.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="760" height="100"></embed>
</object>

<!--**************EN ALGUN "include" de php por ejemplo**********************-->
<script language="JavaScript" src="fix.js"></script>
<!--*********************************************************************-->

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="760" height="100">
<param name=movie value="http://dsnet.com.ar/intro3.swf">
<param name=quality value=high>
<embed src="http://dsnet.com.ar/intro3.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="760" height="100"></embed>
</object>

</body>

</html>
/*******************************************/

以上是关于JavaScript [FIX] Macromedia Flash - 单击参数激活控件 - 单击以激活控件的主要内容,如果未能解决你的问题,请参考以下文章

JavaScript PNG Fix iE

javascript Scoped Callback-Hell Fix

JavaScript JS FIX - IE6背景图像闪烁

JavaScript IE6 png-fix jQuery

JavaScript [FIX] Macromedia Flash - 单击参数激活控件 - 单击以激活控件

JS FIX-IE6背景图片闪烁