开发者

Embedded music player not working in opera and mozilla browser

The media player embedded code work only in IE.How I can do it able to work on opera ,mozilla and other browser.I am using this below code.

<HTML>
<HEAD>
</HEAD>
<BODY>
<OBJECT ID="Player" height="0" width="0"
  CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
</OBJECT>
<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="Play" OnClick="StartMeUp()">
<INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" OnClick="ShutMeDown()">
<SCRIPT>
<!--

function StartMeUp ()
{
    Player.URL = "laure.wma";
}

function ShutM开发者_如何学运维eDown ()
{
    Player.controls.stop();
}

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


You are using the Windows Media Player ActiveX control, which only works in IE.

It can work in FireFox if the Windows Media Player Firefox Plugin is installed on the user's computer.

For best results, you should probably use Flash.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜