不用放播放器啊,你只须在网页里放上代码,放上歌曲就可以了,至于播放是客户端的事了。
下面这个是播放WMA的,你把1.wma,2.wma,3.wma放在这个网页目录里就可以。
歌曲一<input type="radio" name="song" onclick="play(1)">
歌曲二<input type="radio" name="song" onclick="play(2)">
歌曲三<input type="radio" name="song" onclick="play(3)">
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="wmplayer" width="468" height="64" border="0">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="defaultFrame" VALUE="">
<param name="volume" value="100">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="stretchToFit" value="-1">
<param name="windowlessVideo" value="-1">
<param name="enabled" value="-1">
<param name="uiMode" value="Full">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="1">
<embed src="1" width="382" height="64" autostart="-1" border="0" rate="1" balance="0" currentposition="0" playcount="1" defaultframe="" volume="100" currentmarker="0" invokeurls="-1" stretchtofit="-1" windowlessvideo="-1" enabled="-1" uimode="Full" enablecontextmenu="-1" fullscreen="0" samistyle="value" samilang="value" samifilename="value" captioningid="value" enableerrordialogs="0"></embed>
</object>
<script type="text/javascript" language="javascript">
<!--
function play(s){
wmplayer.URL=s+".wma";
}
//-->
</script>
追问在不联网的情况下,可以播放本地的音乐吗
追答可以,你把歌曲和网页放一起。
本回答被网友采纳