MIDI播放器播放代码为:
<EMBED src=http://sucai.xx.com/sucai/MID/003/30.mid width=320 height=45 type=midi ; autostart="false">
注意:可以加入hidden="true"命令将播放器面板隐藏,但这时应autostart="true",否则不能进入播放。另外用loop="true"(或"false")决定音乐是否循环播放。
设置隐藏方式后的代码实例:
<EMBED src=http://sucai.xx.com/sucai/MID/003/30.mid width=320 height=45 type=midi ; autostart="true" hidden="true">
更简洁的代码:
<EMBED src=http://sucai.xx.com/sucai/MID/003/30.mid autostart=true hidden=true>
mp3播放器
代码为:
<embed src=http://www.xx.com.cn/newyear/buttterfly.mp3 width=320 height=45
type=audio/mp3 ; autostart="false">
“type=”后可省略“audio”,于是:
<embed src=http://www.xx.com.cn/newyear/buttterfly.mp3 width=320 height=50
type=mp3 ; autostart="false">
更简洁的代码:
<embed src=http://www.xx.com.cn/newyear/buttterfly.mp3 width=320 height=50 autostart=false>
wma播放器
播放代码为:
<embed src=http://www.shgedu.net/shg404/rm/zanlaobaixing.wma width=320 height=45 type=wma ; autostart="false">
注意贴代码时要先勾选帖子编辑窗口下面的“使用html...”,然后将全部代码粘贴到<div>与</div>之间。
更简洁的代码:
<embed src=http://www.shgedu.net/shg404/rm/zanlaobaixing.wma width=320 height=45 autostart=false>
rm音频播放器 <embed src=http://www.shgedu.net/shg404/rm/dachangjin.rm width=320 height=45 autostart=false>