<script type="text/javascript">
AC_AX_RunContent( 'id','MPlayer_msg','width','0','height','0','classid','CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95','codebase','http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,5,0803','standby','Loading   Windows   Media   Player   components...','type','application/x-oleobject','filename','sound/msg.wav','autostart','0','showcontrols','false','volume','2' ); //end AC code
</script><noscript><object id="MPlayer_msg" width="0" height="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
        codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,5,0803"
        standby="Loading   Windows   Media   Player   components..." type="application/x-oleobject">
        <param name="FileName" value="sound/msg.wav" />
        <param name="AutoStart" value="0" />
        <param name="ShowControls" value="false" />
        <param name="Volume" value="2" />
    </object></noscript>
这段代码,是用来嵌入音乐文件的。前面部分是DW帮我加上去的,应该不会有问题。关键在于><object >这个标签,有些客户可能Medie Play版本低还是什么原因,要安装这个组件的时候报错,下次登录的时候直接关闭浏览器。有没有这种问题的解决办法?

解决方案 »

  1.   

    object 是ACTIVEX 控件,
    所以最好的办法 ,升级用户播放器。
      

  2.   

    你这个明显是ACTIVEX 有问题才使IE出错。
      

  3.   

    有谁做过音乐播放的,新版本无问题的medie player参数应该怎么写
      

  4.   

     <div id="DIVmediaPlayer" style="display: none;">
                    <object id="mediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="ActiveX/nsmp2inf.cab#Version=5,1,52,701"
                        standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"
                        width="300" height="40">
                        <param name="animationatStart" value="true">
                        <param name="transparentatStart" value="true">
                        <param name="autoStart" value="true">
                        <param name="showControls" value="true">
                    </object>
                </div>    function playSound(url) {
            document.getElementById("mediaPlayer").FileName = url;
            document.getElementById("DIVmediaPlayer").style.display = "";
        }
      

  5.   

    flash做音乐播放挺好的!
    合肥快速建站 模板建站 
    我想建站 合肥建站