JS在FF里替换不了视频元素
程序代码:
<html> <head> <script type="text/javascript" language="javascript"> function dytt(){ document.getElementById("dy2").innerHTML="<object classid='clsid:F3D0D36F-23F8-4682-A195- 74C92B03D4AF' width='640' height='550' id='QvodPlayer' name='QvodPlayer' onError=if (window.confirm('请您先安装QvodPlayer软件,然后刷新本页才可以正常播放.')){window.open ('http://www.')}else{self.location='http://www.'}><PARAM NAME='URL' VALUE='qvod://891017950|2E07DE17685A0A3307474335F054B0CBEFB16F02|未来警察BD.rmvb|'><PARAM NAME='Autoplay' VALUE='1'></object>";} </script> </head> <body> <div class="dy" id="dy2"> <embed type="application/x-shockwave-flash" src="http://player. id="movie_player" name="movie_player" bgcolor="#FFFFFF" quality="high" allowfullscreen="true" flashvars="isShowRelatedVideo=false&showAd=0&show_pre=1&show_next=1&isAutoPlay=false&isDebug=false &UserID=&winType=interior&playMovie=true&MM Control=false&MMout=false&RecordCode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3 007,3008,9999" pluginspage="http://www. width="640" height="550"> </embed> </div> <a href="#" onclick="dytt()">快播</a> </body> </html>问一下,这段换视频的JS代码,在世界之窗,360,IE都可以正常换掉元素,显示快播播放器。
而firefox却没作用,显示不出来,这个到底怎么搞的啊,求高人指点一二!