怎样在论坛上贴音乐及播放器面板的设置
<p>1、基本的播放器面板:</p><EMBED src=音乐地址 width=300 height=45 loop="-1" autostart="-1" volume="0" type=audio/x-ms-wma>
<br>
<br>
代码: <br>
<br>
<EMBED src=音乐地址 width=300 height=45 loop="-1" autostart="-1" volume="0"
type=audio/x-ms-wma><br>
<br>
说明: <br>
width=300 面板宽(根据需要来确定)<br>
height=45 面板高(一般以45像素为标准)<br>
loop="-1" 重复播放(-1是、false否)<br>
autostart="-1" 缓存完后自动播放(-1是、false否)<br>
type=audio/x-ms-wma 式样,其值应根据音频文件格式来设定,WMA格式用audio/x-ms-wma,MP3和Wave格式用audio/mpeg,Real格式用application/octet-stream
flash格式用application/x-shockwave-flash<br>
<br>
<br>
2、使用式样表来设定面板的颜色: <br>
<br>
在上面的代码中,只要加入以下简单的滤镜就可设定面板的颜色。 <br>
灰色:style="FILTER: Gray"<br>
黑色:style="FILTER: Xray"<br>
棕色:style="FILTER: Invert" <br>
<br>
灰色 <br>
<EMBED style="FILTER: Gray" src=http://www.aqlife.com/UploadFile/2005-11/2005111719381012385.wma width=300 height=45 type=audio/x-ms-wma loop="-1" autostart="-1">
<br>
黑色 <br>
<EMBED style=style="FILTER: Xray" src=http://www.aqlife.com/UploadFile/2005-11/2005111719381012385.wma width=300 height=45 type=audio/x-ms-wma loop="-1" autostart="-1">
<br>
棕色 <br>
<br>
<EMBED style="FILTER: Invert" src=http://www.aqlife.com/UploadFile/2005-11/2005111719381012385.wma width=300 height=45 type=audio/x-ms-wma loop="-1" autostart="-1">
<br>
代码:<EMBED style="FILTER: Invert" src=http://www.aqlife.com/UploadFile/2005-11/2005111719381012385.wma
width=300 height=45 type=audio/x-ms-wma loop="-1" autostart="-1"><br>
<br>
3、隐藏播放进度条,显示剪辑信息栏: <br>
<br>
只要在代码中加入ShowStatusBar="1" 就可以显示剪辑信息栏,并隐藏播放进度条(适用于上述各种颜色的面板),注:需要将面板高度设置为50个像素。
<br>
<EMBED ShowStatusBar="1"src=音乐地址 width=300 height=45 loop="-1" autostart="-1" volume="0" type=audio/x-ms-wma>
<br>
如果在显示剪辑信息的情况下,把高度设置为68个像素,就会同时显示播放进度条。 <br>
<br>
<EMBED ShowStatusBar="1"src=音乐地址 width=300 height=68 loop="-1" autostart="-1" volume="0" type=audio/x-ms-wma>
<embed src="http://n.99081.com/hyz2007/4/4.swf?mp3=http://www.aig5.com/images/taobao_pic/lonely.mp3&autostart=1&bgcolor=ffffff" width="260" height="40" quality="high" value="transparent" type="application/x-shockwave-flash"wmode="transparent">
[ 本帖最后由 凭窗远眺. 于 2007-11-27 09:49 编辑 ] <OBJECT id=ALE style=\"BORDER: #646DAE 2px solid; FILTER: wave(strength=0,freq=0,lightstrength=45,phase=60,add=0); \" height=24 width=220 classid=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95><PARAM NAME=\"Filename\" VALUE=\"1.mp3\"><PARAM NAME=\"AutoStart\" VALUE=\"0\"><PARAM NAME=\"ShowControls\" VALUE=\"1\"><PARAM NAME=\"ShowDisplay\" VALUE=\"0\"><PARAM NAME=\"ShowPositionControls\" VALUE=\"1\"><PARAM NAME=\"ShowStatusBar\" VALUE=\"1\"><PARAM NAME=\"Volume\" VALUE=\"0\"></OBJECT><OBJECT id=ALE style=\\"BORDER: #646DAE 2px solid; FILTER: wave(strength=0,freq=0,lightstrength=45,phase=60,add=0); \\" height=24 width=220 classid=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95><PARAM NAME=\\"Filename\\" VALUE=\\"1.mp3\\"><PARAM NAME=\\"AutoStart\\" VALUE=\\"0\\"><PARAM NAME=\\"ShowControls\\" VALUE=\\"1\\"><PARAM NAME=\\"ShowDisplay\\" VALUE=\\"0\\"><PARAM NAME=\\"ShowPositionControls\\" VALUE=\\"1\\"><PARAM NAME=\\"ShowStatusBar\\" VALUE=\\"1\\"><PARAM NAME=\\"Volume\\" VALUE=\\"0\\"></OBJECT> <object type=\"application/x-shockwave-flash\" height=\"28\" width=\"355\" data=\"http://www.openinfo.com.cn/UserFiles/emff.swf?src=http://www.voguezone.com/mp3/zdtl.mp3\">
<param value=\"http://www.openinfo.com.cn/UserFiles/emff.swf?src=http://www.voguezone.com/mp3/zdtl.mp3\" name=\"movie\" />
</object><object type=\\"application/x-shockwave-flash\\" height=\\"28\\" width=\\"355\\" data=\\"http://www.openinfo.com.cn/UserFiles/emff.swf?src=http://www.voguezone.com/mp3/zdtl.mp3\\">
<param value=\\"http://www.openinfo.com.cn/UserFiles/emff.swf?src=http://www.voguezone.com/mp3/zdtl.mp3\\" name=\\"movie\\" />
</object> <P><embed src=\"http://www.odeo.com/flash/audio_player_standard_black.swf\" quality=\"high\" width=\"300\" height=\"52\" name=\"audio_player_standard_black\" align=\"middle\" allowscrīptAccess=\"always\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" flashvars=\"audio_id=1767118&audio_duration=233.976&valid_sample_rate=false&external_url=http://61.180.31.37/music/music1/花开花谢花满天(雷龙).mp3\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></embed></P><P><embed src=\\"http://www.odeo.com/flash/audio_player_standard_black.swf\\" quality=\\"high\\" width=\\"300\\" height=\\"52\\" name=\\"audio_player_standard_black\\" align=\\"middle\\" allowscrīptAccess=\\"always\\" wmode=\\"transparent\\" type=\\"application/x-shockwave-flash\\" flashvars=\\"audio_id=1767118&audio_duration=233.976&valid_sample_rate=false&external_url=http://61.180.31.37/music/music1/花开花谢花满天(雷龙).mp3\\" pluginspage=\\"http://www.macromedia.com/go/getflashplayer\\" /></embed></P>播放器说明:
<p> </p>
<p>常用属性如下:</p>
<p>src=\"歌曲链接地址\" <br>
设定 歌曲链接地址 档案及路径,使用时去掉引号。 </p>
<p>autostart=true <br>
是否在音乐档下载完之后就自动播放。true 是,false 否 (内定值)。 </p>
<p>loop=\"true\" <br>
是否自动反复播放。LOOP=2 表示重复两次,true 是, false 否。 </p>
<p>HIDDEN=\"true\" <br>
是否完全隐藏控制画面,true 为是,no 为否 (内定)。 </p>
<p>STARTTIME=\"分:秒\" <br>
设定歌曲开始播放的时间。如 STARTTIME=\"00:30\" 表示从第30秒处开始播放。 </p>
<p>VOLUME=\"0-100\" <br>
设定音量的大小,数值是0到100之间。内定则为使用系统本身的设定</p>
<p>WIDTH=\"整数\" 和 HIGH=\"整数\" <br>
设定控制面板的高度和宽度。(若 HIDDEN=\"no\") </p>
<p>ALIGN=\"center\" <br>
设定控制面板和旁边文字的对齐方式,其值可以是 top、bottom、center、baseline、
left、right、texttop、middle、absmiddle、absbottom </p>
<p>CONTROLS=\"smallconsole\" <br>
设定控制面板的外观。预设值是 console。 <br>
console 一般正常面板 <br>
smallconsole 较小的面板 <br>
playbutton 只显示播放按钮 <br>
pausecutton 只显示暂停按钮 <br>
stopbutton 只显示停止按钮 <br>
volumelever 只显示音量调节按钮</p>
<p>如果要隐藏播放器,把width和height的数值改成0或者1就可以了,但不能真正隐藏,可见到一条竖线,最好用hidden=true来隐藏。</p>
<p>另,type值有针对性,MP3和Wave文件通常用audio/mpeg,WMA用audio/x-ms-wma,Real类型的要用application/octet-stream,Flash类型用application/x-shockwave-flash。另外,如果不想让播放机的界面显示出来,可用hidden=true替代width和height两个参数。至于播放值的高与宽,多做尝试即可把握</p> <object type=\"application/x-shockwave-flash\" data=\"http://211.91.102.188/upup/audioplayer.swf\" width=\"290\" height=\"24\" id=\"audioplayer3993\" ><param name=\"movie\" value=\"http://211.91.102.188/upup/audioplayer.swf\" /><param name=\"FlashVars\" value=\"playerID=3993&bg=0xCDDFF3&leftbg=0x33CC33&lefticon=0x00ff00&rightbg=0x33CC33&rightbghover=0x00ff00&righticon=0x00ff00&righticonhover=0xFFFFFF&text=0x33CC33&slider=0x33CC33&track=0xFFFFFF&border=0xFFFFFF&loader=0x00ff00&autostart=no&soundFile=http://bbs.pybk.com/song/wangfeng03.mp3\"/><param name=\"quality\" value=\"high\" /><param name=\"menu\" value=\"false\" /><param name=\"wmode\" value=\"transparent\" /></object><object type=\\"application/x-shockwave-flash\\" data=\\"http://211.91.102.188/upup/audioplayer.swf\\" width=\\"290\\" height=\\"24\\" id=\\"audioplayer3993\\" ><param name=\\"movie\\" value=\\"http://211.91.102.188/upup/audioplayer.swf\\" /><param name=\\"FlashVars\\" value=\\"playerID=3993&bg=0xCDDFF3&leftbg=0x33CC33&lefticon=0x00ff00&rightbg=0x33CC33&rightbghover=0x00ff00&righticon=0x00ff00&righticonhover=0xFFFFFF&text=0x33CC33&slider=0x33CC33&track=0xFFFFFF&border=0xFFFFFF&loader=0x00ff00&autostart=no&soundFile=http://bbs.pybk.com/song/wangfeng03.mp3\\"/><param name=\\"quality\\" value=\\"high\\" /><param name=\\"menu\\" value=\\"false\\" /><param name=\\"wmode\\" value=\\"transparent\\" /></object> <embed src=\"http://www.odeo.com/flash/audio_player_midsize_black.swf\" quality=\"high\" width=\"150\" height=\"60\" name=\"audio_player_midsize_black\" align=\"middle\" allowscrīptAccess=\"always\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" flashvars=\"audio_id=1767118&audio_duration=233.976&valid_sample_rate=false&external_url=http://www.m8yy.com/uploadfile/showsing/20070303/20070303181238_1664.mp3?ps=m8yymedia\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></embed><embed src=\\"http://www.odeo.com/flash/audio_player_midsize_black.swf\\" quality=\\"high\\" width=\\"150\\" height=\\"60\\" name=\\"audio_player_midsize_black\\" align=\\"middle\\" allowscrīptAccess=\\"always\\" wmode=\\"transparent\\" type=\\"application/x-shockwave-flash\\" flashvars=\\"audio_id=1767118&audio_duration=233.976&valid_sample_rate=false&external_url=http://www.m8yy.com/uploadfile/showsing/20070303/20070303181238_1664.mp3?ps=m8yymedia\\" pluginspage=\\"http://www.macromedia.com/go/getflashplayer\\" /></embed> <embed src=\"http://www.odeo.com/flash/audio_player_tiny_black.swf\" quality=\"high\" width=\"145\" height=\"25\" name=\"audio_player_tiny_black\" align=\"middle\" allowscrīptAccess=\"always\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" flashvars=\"audio_id=1767118&audio_duration=233.976&valid_sample_rate=false&external_url=http://www.m8yy.com/uploadfile/showsing/20070303/20070303181238_1664.mp3?ps=m8yymedia\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></embed><embed src=\\"http://www.odeo.com/flash/audio_player_tiny_black.swf\\" quality=\\"high\\" width=\\"145\\" height=\\"25\\" name=\\"audio_player_tiny_black\\" align=\\"middle\\" allowscrīptAccess=\\"always\\" wmode=\\"transparent\\" type=\\"application/x-shockwave-flash\\" flashvars=\\"audio_id=1767118&audio_duration=233.976&valid_sample_rate=false&external_url=http://www.m8yy.com/uploadfile/showsing/20070303/20070303181238_1664.mp3?ps=m8yymedia\\" pluginspage=\\"http://www.macromedia.com/go/getflashplayer\\" /></embed> <embed src=\"http://www.odeo.com/flash/audio_player_midsize_gray.swf\" quality=\"high\" width=\"150\" height=\"60\" name=\"audio_player_midsize_gray\" align=\"middle\" allowscrīptAccess=\"always\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" flashvars=\"audio_id=1767118&audio_duration=233.976&valid_sample_rate=false&external_url=http://www.52vip.cn/music/bjyy.mp3\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></embed><embed src=\\"http://www.odeo.com/flash/audio_player_midsize_gray.swf\\" quality=\\"high\\" width=\\"150\\" height=\\"60\\" name=\\"audio_player_midsize_gray\\" align=\\"middle\\" allowscrīptAccess=\\"always\\" wmode=\\"transparent\\" type=\\"application/x-shockwave-flash\\" flashvars=\\"audio_id=1767118&audio_duration=233.976&valid_sample_rate=false&external_url=http://www.52vip.cn/music/bjyy.mp3\\" pluginspage=\\"http://www.macromedia.com/go/getflashplayer\\" /></embed> <embed src=\"http://www.odeo.com/flash/audio_player_standard_gray.swf\" quality=\"high\" width=\"300\" height=\"52\" align=\"middle\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" flashvars=\"audio_id=1708649&audio_duration=138.083&valid_sample_rate=true&external_url=http://www.52vip.cn/music/bjyy.mp3\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></embed><embed src=\\"http://www.odeo.com/flash/audio_player_standard_gray.swf\\" quality=\\"high\\" width=\\"300\\" height=\\"52\\" align=\\"middle\\" wmode=\\"transparent\\" type=\\"application/x-shockwave-flash\\" flashvars=\\"audio_id=1708649&audio_duration=138.083&valid_sample_rate=true&external_url=http://www.52vip.cn/music/bjyy.mp3\\" pluginspage=\\"http://www.macromedia.com/go/getflashplayer\\" /></embed> <TABLE style=\"FILTER: Alpha(Opacity=100, FinishOpacity=8, Style=2, StartX=20, StartY=30, FinishX=0, FinishY=0)gray()\" align=center>
<TBODY>
<TR>
<TD>
<CENTER><EMBED style=\"BORDER-RIGHT: silver 1px solid; BORDER-TOP: silver 1px solid; BORDER-LEFT: silver 1px solid; BORDER-BOTTOM: silver 1px solid\" src=http://myworld0301.supremeserver20.com/rurality.asx width=480 height=45 type=video/x-ms-asf console=\"video\" show*status*bar=\"1\" volume=\"0\" autostart=\"1\" loop=\"1\"></center></TD></TR></TBODY></TABLE><TABLE style=\\"FILTER: Alpha(Opacity=100, FinishOpacity=8, Style=2, StartX=20, StartY=30, FinishX=0, FinishY=0)gray()\\" align=center>
<TBODY>
<TR>
<TD>
<CENTER><EMBED style=\\"BORDER-RIGHT: silver 1px solid; BORDER-TOP: silver 1px solid; BORDER-LEFT: silver 1px solid; BORDER-BOTTOM: silver 1px solid\\" src=http://myworld0301.supremeserver20.com/rurality.asx width=480 height=45 type=video/x-ms-asf console=\\"video\\" show*status*bar=\\"1\\" volume=\\"0\\" autostart=\\"1\\" loop=\\"1\\"></center></TD></TR></TBODY></TABLE>注:autostart=\"1\" 自动播放----或写\"-1\" 或\"true\" autostart=\"0\" 手动 或写\"false\" 此播放器效果可随背景色而微变.