网页MP3播放器代码
如果你也想往自己的博客里,網頁里加入音樂播放器,只要復制下面的網頁音樂播放器代碼,做適當的修改就可以啦!有很多播放器可以選擇,不要挑花眼哦!
中true或1表示自動播放,false或0表示手動播放
?loop="true" 中的true或1表示重復播放,false或0表示只播放一次
width= height= 中的數字分別表示播放器的寬度和高度 =0表示隱藏播放器
EnableContextMenu="0" 禁右鍵
ShowStatusBar="1" (帶顯示文件播放信息)
1隱藏播放器(不循環)
代碼:
<EMBED src=音樂網址?hidden=true type=audio/x-ms-wma >
?
2.隱藏播放器(循環播放)
代碼:
<EMBED src=音樂網址?hidden=true type=audio/mpeg loop="-1">
?
3.黑色皮膚播放器
?代碼:
?<EMBED style="FILTER: xray()" src=音樂網址 width=360 height=30 type=audio/mpeg volume="0" loop="-1">
?
4.淡藍色播放器
代碼:
<EMBED ? src=播放地址?width=300 height=45 type=audio/mpeg loop="-1" volume="0">
?
5.迷幻播放器
代碼: <TABLE style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0)gray(); WIDTH: 400px; HEIGHT: 83px">
<TBODY>
<TR>
<TD><EMBED src=播放地址?width=400 height=40 type=audio/mpeg panel="0" loop="true">
</TD></TR></TBODY></TABLE>
?
6.帶菜單的播放器
代碼:
<EMBED pluginspage=http://www.microsoft.com/windows/mediaplayer/download/default.asp width=400 height=172 type=application/x-mplayer2 FileName="音樂網址" SHOWCONTROLS="1" SHOWSTATUSBAR="1" SHOWDISPLAY="1" SHOWGOTOBAR="1" PlayCount="1">
?
7.深黃色帶菜單播放器
代碼:
<EMBED style="FILTER: invert()" src=音樂網址?width=320 height=45 type=audio/x-ms-wma ShowStatusBar="1" loop="true" >
?
8.灰色播放器
代碼:
<EMBED style="FILTER: Gray()" src="鏈接地址" width=300 height=69 type=application/x-mplayer2 loop="-1" showcontrols="1" ShowDisplay="0" ShowStatusBar="1" ></EMBED>
?
9.灰白色播放器
代碼:
<embed style="FILTER: Gray()" src=鏈接地址?width=300 height=45 loop="-1" ></EMBED>
?
10.帶菜單的藍色播放器
代碼:
<EMBED src="鏈接地址" width=300 height=69 type=application/x-mplayer2 loop="-1" showcontrols="1" ShowDisplay="0" ShowStatusBar="1" ></EMBED>
?
11.棕色播放器
代碼:
<EMBED style="FILTER: invert()" src=鏈接地址?width=300 height=45 loop="-1" ></EMBED>
?
12.帶邊框背景的播放器
代碼: <TABLE borderColor=#4F3256 background=背景圖片地址?border=1>
<TBODY><TR>
<TD style="FILTER: alpha(opacity=50,style=3)">
<P align=center><EMBED src=音樂網址? width=300 height=25 type=audio/mpeg loop="-1" volume="0">
</P></TD></TR></TBODY></TABLE>
?
13.帶背景圖片的播放器
代碼: <TABLE borderColor=navy background=圖片地址?border=0>
<TBODY><TR>
<TD style="FILTER: alpha(opacity=80,style=3)">
<P align=center><EMBED src=音樂網址? width=300 height=45 type=audio/mpeg loop="-1" volume="0">
</P></TD></TR></TBODY></TABLE>
12 13綜合屬性分析
background=圖片地址可以更換圖片地址來實現改變播放器背景
?
14.黃色閃光播放器
代碼: <TABLE style="BORDER-RIGHT: #000000 3px dashed; BORDER-TOP: #000000 3px dashed; BORDER-LEFT: #000000 3px dashed; BORDER-BOTTOM: #000000 3px dashed" cellSpacing=0 cellPadding=0 bgColor=#00000>
<TBODY><TR><TD>
<TABLE borderColor=navy background=http://nxm.16789.net/s-helpSite/domName/nxm/20041114123131568.gif border=0>
<TBODY><TR>
<TD style="FILTER: alpha(opacity=50,style=3)">
<P align=center><EMBED src=音樂網址?width=400 height=35 type=audio/mpeg loop="-1" loop="-1">
</P></TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE>
?
15.藍色閃光播放器
代碼: <TABLE borderColor=#dee4fe cellSpacing=3 cellPadding=0 background=http://www.yhbbs.com/UploadFile/2004-12/2004123023101352.gif border=2><TBODY><TR><TD><TABLE align=center border=0>
<TBODY><TR><TD style="FILTER: alpha(opacity=60,style=3)">
<P align=center><EMBED style="FILTER: Gray" src=音樂網址?width=400 height=35 type=audio/mpeg volume="0" loop="-1">
</P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
?
16.帶花邊的播放器
代碼: <TABLE style="BORDER-RIGHT: #000000 3px dashed; BORDER-TOP: #000000 3px dashed; BORDER-LEFT: #000000 3px dashed; BORDER-BOTTOM: #000000 3px dashed" cellSpacing=0 cellPadding=0 bgColor=#00000>
<TBODY><TR><TD>
<TABLE borderColor=#000000 align=center border=1>
<TBODY><TR><TD>
<P align=center><EMBED style="FILTER: Xray" src=音樂網址?width=400 height=35 type=audio/mpeg volume="0" loop="-0">
</P></TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE>
?
17.粉色花邊播放器
代碼: <TABLE style="BORDER-RIGHT: #ff69b4 3px dotted; BORDER-TOP: #ff69b4 3px dotted; BORDER-LEFT: #ff69b4 3px dotted; BORDER-BOTTOM: #ff69b4 3px dotted" cellSpacing=0 cellPadding=0 align=center bgColor=white>
<TBODY>
<TR>
<TD>
<TABLE borderColor=#ff69b4 align=center bgColor=#ffccf5 border=2>
<TBODY>
<TR>
<TD style="FILTER: alpha(opacity=100,style=3)">
<P align=center><EMBED src=音樂網址?width=300 height=25 type=audio/mpeg volume="0" loop="-0">
</P></TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE>
?
18.顯示文件標簽灰色播放器
代碼: <DIV><EMBED style="FILTER: Gray()" src="鏈接地址" loop="-1" width=300 height=140 balance="true" showpositioncontrols="true" showtracker="true" showaudiocontrols="true" showcontrols="true" showstatusbar="true" showdisplay="true" displaysize="0" volume="100" animationatstart="true" transparentatstart="true"></EMBED></div> ? 19顯示文件標簽棕色播放器代碼: <DIV><EMBED style="FILTER: invert()" src="鏈接地址" loop="-1" width=300 height=140 balance="true" showpositioncontrols="true" showtracker="true" showaudiocontrols="true" showcontrols="true" showstatusbar="true" showdisplay="true" displaysize="0" volume="100" animationatstart="true" transparentatstart="true"></EMBED></div> ? 20.顯示文件標簽黑色播放器
代碼: <DIV><EMBED style="FILTER: xray()" src="鏈接地址" loop="-1" width=300 height=140 balance="true" showpositioncontrols="true" showtracker="true" showaudiocontrols="true" showcontrols="true" showstatusbar="true" showdisplay="true" displaysize="0" volume="100" animationatstart="true" transparentatstart="true"></EMBED></div> ? 21.連放播放器
代碼:
<EMBED style="FILTER: Gray()" src=音樂網址?width=500 height=35 type=audio/x-ms-wma controls="StatusBar,TACCtrl,ControlPanel" border="0" playcount="0" showtracker="1" volume="0"></EMBED>
22.彩色播放器
代碼: <TABLE style="FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: 00CCFF; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana; FONT-VARIANT: normal" cellSpacing=0 cellPadding=0 width=140 border=0>
<TBODY>
<TR>
<TD style="BACKGROUND-COLOR: 00CCFF"><EMBED ?style="FILTER: invert alpha(opacity=50) WIDTH: 140px; HEIGHT: 45px" src=音樂鏈接地址?type=video/x-ms-asf loop="-1" volume="0"></EMBED></TD></TR></TBODY></TABLE>
本代碼屬性分析
BACKGROUND-COLOR: 00CCFF??播放器顏色代碼 可以更換 以變換播放器顏色
?
23.透明播放器代碼
代碼:<TABLE style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0)xray(); WIDTH: 200px; HEIGHT: 40px">
<TBODY>
<TR>
<TD><EMBED style="BORDER-RIGHT: silver 1px solid; BORDER-TOP: silver 1px solid; BORDER-LEFT: silver 1px solid; BORDER-BOTTOM: silver 1px solid" src=音樂鏈接地址?width=200 height=30 type=audio/x-mplayer2 loop="-1" volume="0" EnableContextMenu="0" showstatusbar="0" console="video"></TD></TR></TBODY></TABLE>
總結
以上是生活随笔為你收集整理的网页MP3播放器代码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 计算流体力学简介(九)——拉瓦尔喷管模拟
- 下一篇: sod