<EMBED style="FILTER: Xray" src=http://www.cnhanzi.com/zhongqiu/music.wma width=484 height=45 type=audio/mpeg volume="0" autostart="true" loop="-1"> </MARQUEE>
播放器说明:
常用属性如下:
src="歌曲链接地址" 设定 歌曲链接地址 档案及路径,使用时去掉引号。
autostart=true 是否在音乐档下载完之后就自动播放。true 是,false 否 (内定值)。
loop="true" 是否自动反复播放。LOOP=2 表示重复两次,true 是, false 否。
HIDDEN="true" 是否完全隐藏控制画面,true 为是,no 为否 (内定)。
STARTTIME="分:秒" 设定歌曲开始播放的时间。如 STARTTIME="00:30" 表示从第30秒处开始播放。
VOLUME="0-100" 设定音量的大小,数值是0到100之间。内定则为使用系统本身的设定
WIDTH="整数" 和 HIGH="整数" 设定控制面板的高度和宽度。(若 HIDDEN="no")
ALIGN="center" 设定控制面板和旁边文字的对齐方式,其值可以是 top、bottom、center、baseline、 left、right、texttop、middle、absmiddle、absbottom
C 设定控制面板的外观。预设值是 console。 console 一般正常面板 smallconsole 较小的面板 playbutton 只显示播放按钮 pausecutton 只显示暂停按钮 stopbutton 只显示停止按钮 volumelever 只显示音量调节按钮
如果要隐藏播放器,把width和height的数值改成0或者1就可以了,但不能真正隐藏,可见到一条竖线,最好用hidden=true来隐藏。
另,type值有针对性,MP3和Wave文件通常用audio/mpeg,WMA用audio/x-ms-wma,Real类型的要用application/octet-stream,Flash类型用application/x-shockwave-flash。另外,如果不想让播放机的界面显示出来,可用hidden=true替代width和height两个参数。至于播放值的高与宽,多做尝试即可把握。
|