这段代码在我电脑上好使,在别人电脑上报错 !
<script>
if(-1 != navigator.userAgent.indexOf("MSIE")) {
document.write(' <OBJECT id="Player_pwd"');
document.write(' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"');
document.write(' width=0 height=0 > <param name="URL" value="142.mid" /> <param name="AutoStart" value="false" /> </OBJECT>');
}else {
document.write(' <OBJECT id="Player_pwd"');
document.write(' type="application/x-ms-wmp"');
document.write(' autostart="false" src= "142.mid" width=0 height=0> </OBJECT>');
}
Player_pwd.controls.play();
</script>报错:TypeError: Player_pwd.controls is undefined Player_pwd.controls.play();
<script>
if(-1 != navigator.userAgent.indexOf("MSIE")) {
document.write(' <OBJECT id="Player_pwd"');
document.write(' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"');
document.write(' width=0 height=0 > <param name="URL" value="142.mid" /> <param name="AutoStart" value="false" /> </OBJECT>');
}else {
document.write(' <OBJECT id="Player_pwd"');
document.write(' type="application/x-ms-wmp"');
document.write(' autostart="false" src= "142.mid" width=0 height=0> </OBJECT>');
}
Player_pwd.controls.play();
</script>报错:TypeError: Player_pwd.controls is undefined Player_pwd.controls.play();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货