<HTML>
<BODY >
<SCRIPT type="text/javascript">

      document.write(
'<OBJECT >); 

      
if(-1 != navigator.userAgent.indexOf("MSIE"))
      {               
        document.write(
' class>);       
      }
      
else if(-1 != navigator.userAgent.indexOf("Firefox"))
      {      
        document.write(
' type="application/x-ms-wmp"');        
      }  

      document.write(
' width=300 height=200>');
      document.write(
'<PARAM name="autoStart" value="true"/>');
      document.write(
'<PARAM name="url" value=".wma文件路径"/>');
      document.write(
'</OBJECT>'); 
      
    
</SCRIPT>
<input   type= "button"   id= "btn4 "   value= "Play"   onclick="playMusic()"/>
<input   type= "button"   id= "btn4 "   value= "Stop"    onclick="stopMusic()"/>
<SCRIPT>
    
function playMusic(){ 
         document.getElementById(
"Player").controls.play();
    } 

    
function stopMusic(){ 
        document.getElementById(
"Player").controls.stop();
    }


    
</SCRIPT>
</BODY>
</HTML>

相关文章:

  • 2021-07-17
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2021-05-31
  • 2021-06-06
猜你喜欢
  • 2022-03-09
  • 2022-02-01
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
相关资源
相似解决方案