只要在公告栏里添加如下代码进去就行啦,你可是试着把param name="FileName" value=“url”中的url替换为你的音乐列表就可以啦,至于asx文件格式可以下在我的那个看下仿写……
其他的不用改,若考虑到mplayer(linux中的播放器插件)可以参考baidu的音乐播放叶面源代码,试过会把linux用户的浏览器弄死就去掉啦(不知道现在的mplayer怎样啦,还会不会死掉!),
<object id="mplayer" width="186" height="66" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715,1,52,701"
align="baseline" border="0" standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<param name="FileName" value="http://clin003.googlepages.com/musicplaylist12-7.asx">
<param name="ShowControls" value="1">
<param name="ShowPositionControls" value="0">
<param name="ShowAudioControls" value="1">
<param name="ShowTracker" value="1">
<param name="ShowDisplay" value="0">
<param name="ShowStatusBar" value="1">
<param name="AutoSize" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowCaptioning" value="0">
<param name="AutoStart" value="1">
<param name="PlayCount" value="0">
<param name="AnimationAtStart" value="0">
<param name="TransparentAtStart" value="0">
<param name="AllowScan" value="0">
<param name="EnableContextMenu" value="1">
<param name="ClickToPlay" value="0">
<param name="InvokeURLs" value="1">
<param name="DefaultFrame" value="datawindow">
</object>