uu688 Admin
帖子数 : 172 注册日期 : 12-05-30
| 主题: 各种播放器代码和图式 周三 七月 25, 2012 10:52 pm | |
| - 代码:
-
<div id="BlogArticleDetail" style="font-size:14px;"><table style="WIDTH: 700px; HEIGHT: 700px" borderColor=#ffffff height=400 cellSpacing=4 borderColorDark=#0e8e41 cellPadding=0 width=700 align=center borderColorLight=#0e8e41 border=1> <tbody> <tr> <td style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" align=middle width=200 bgColor=#8ed4ab height=5> <p align=center><font color=black>uu688美音画廊 </font></p></td> <td style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" align=middle width=300 bgColor=#8ed4ab height=5><span><font color=black>各种播放器代码和图式</font></span></td> <td style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" align=middle width=200 bgColor=#8ed4ab height=5><font color=black>来自:网络研究</font></td></tr> <tr bgColor=#8ed4ab> <td style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" align=left width=700 colSpan=3 height=11> <div style="BORDER-RIGHT: black 0px solid; SCROLLBAR-FACE-COLOR: #8ed4ab; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; OVERFLOW: scroll; BORDER-LEFT: black 0px solid; WIDTH: 700px; SCROLLBAR-SHADOW-COLOR: #ffffff; COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #333333; BORDER-BOTTOM: black 0px solid; SCROLLBAR-DARKSHADOW-COLOR: #ffffff; HEIGHT: 800px; BACKGROUND-COLOR: transparent"> <p align=center> <img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"></p> <p align=left>1,代码:</p> <p align=left><P align=center><EMBED id=wmp01 style="FILTER: invert(); WIDTH: 400px; HEIGHT: 50px" src=歌曲链接地址 type=audio/mpeg ShowStatusBar="1" autostart="true" loop="true" volume="0"></P></p> <p align=center><embed id=wmp01 style="FILTER: invert(); WIDTH: 400px; HEIGHT: 50px" src=http://www.xinlv.net/bear/bdr/10/9.wma type=audio/mpeg volume="0" loop="true" autostart="false" ShowStatusBar="1"></p> <p align=left>2,代码:</p><p align=center><embed id=wmp1 style="FILTER: Gray" src=http://fs1.139.com/0/83/qingdouguozi/sound/200571992922588.mp3 width=400 height=45 type=audio/mpeg EnableContextMenu="false" volume="0" autostart="true" loop="-1"></p> <p align=center><embed id=wmp1 style="FILTER: Gray" src=http://www.xinlv.net/bear/bdr/10/9.wma width=400 height=45 type=audio/mpeg EnableContextMenu="false" volume="0" autostart="false" loop="-1"></p> <p align=left>3,代码:</p><center><embed src="歌曲链接地址" width="39" height="18" autostart="false" hidden="false" loop="infinite" align="middle" volume="100" type="audio/x-pn-realaudio-plugin" controls="PlayButton" autostart="false"> <div align=center><embed align=middle src=http://www.xinlv.net/bear/bdr/2/01.rm width=39 height=18 type=audio/x-pn-realaudio-plugin autostart="false" controls="PlayButton" volume="100" loop="infinite"></div> <p align=left>4,代码:</p><p align=center><embed style="FILTER: xray()" src=http://hhr8.com/ListenOnLine/yoyoma/001-Gabrie.wma width=400 height=40 type=audio/x-ms-wma bvolume="0" autostart="true" loop="-1"></p> <p align=center><embed style="FILTER: xray()" src=http://hhr8.com/ListenOnLine/yoyoma/001-Gabrie.wma width=400 height=40 type=audio/x-ms-wma bvolume="0" autostart="false" loop="-1"></p> <p align=left>5,代码:</p> <p><p align=center><embed src=http://www.xinlv.net/bear/bdr/2/01.rm width=400 height=20 type=audio/x-pn-realaudio-plugin controls="ControlPanel" autostart="false"></p></p> <p align=center><embed src=http://www.xinlv.net/bear/bdr/2/01.rm width=400 height=20 type=audio/x-pn-realaudio-plugin controls="ControlPanel" autostart="false"></p> <p align=left>6,代码:</p><EMBED height=200 src=音乐文件地址 type=audio/x-pn-realaudio-plugin width=200 autostart="true" controls="IMAGEWINDOW,ControlPanel,StatusBar" console="Clip1"></EMBED> <div align=center><embed src=http://www.yizuren.com/music/libs/mtv/yrzhz/yrzz-mama-mtv.rm width=200 height=200 type=audio/x-pn-realaudio-plugin autostart="false" controls="IMAGEWINDOW,ControlPanel,StatusBar" console="Clip1"></embed></div> <p align=left>7,代码:</p><DIV align=center><EMBED name=MediaPlayer pluginspage=http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=media&sba=plugin& align=baseline src=http://www.xbxk.com/00/sshxn.mp3 width=400 height=68 type=application/x-mplayer2 defaultframe="datawindow" invokeurls="1" clicktoplay="0" enablecontextmenu="1" allowscan="1" transparentatstart="0" animationatstart="0" autorewind="0" autostart="1" showcaptioning="0" showgotobar="0" autosize="0" showstatusbar="1" showdisplay="0" showtracker="1" showaudiocontrols="1" showpositioncontrols="0" showcontrols="1" border="0"></DIV> <div align=center><embed name=MediaPlayer pluginspage=http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=media&sba=plugin& align=baseline src=http://www.xinlv.net/bear/bdr/2/01.rm width=400 height=68 type=application/x-mplayer2 border="0" showcontrols="1" showpositioncontrols="0" showaudiocontrols="1" showtracker="1" showdisplay="0" showstatusbar="1" autosize="0" showgotobar="0" showcaptioning="0" autostart="false" autorewind="0" animationatstart="0" transparentatstart="0" allowscan="1" enablecontextmenu="1" clicktoplay="0" invokeurls="1" defaultframe="datawindow"></div> <p align=left>8,代码:</p><DIV align=center><U><EMBED name=MediaPlayer pluginspage=http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=media&sba=plugin& align=baseline src=http://mms.blog.xuite.net/9a/0f/13438537/blog_75984/dv/3993211/3993211.wma width=400 height=68 type=application/x-mplayer2 border="0" showcontrols="1" showpositioncontrols="0" showaudiocontrols="1" showtracker="1" showdisplay="0" showstatusbar="1" autosize="0" showgotobar="0" showcaptioning="0" autostart="1" autorewind="0" animationatstart="0" transparentatstart="0" allowscan="1" enablecontextmenu="1" clicktoplay="0" invokeurls="1" defaultframe="datawindow"></U></DIV> <div align=center><u><embed name=MediaPlayer pluginspage=http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=media&sba=plugin& align=baseline src=http://www.wx6666.com/wma/WX6666WMA1/i/0616/64091.wma width=400 height=68 type=application/x-mplayer2 border="0" showcontrols="1" showpositioncontrols="0" showaudiocontrols="1" showtracker="1" showdisplay="0" showstatusbar="1" autosize="0" showgotobar="0" showcaptioning="0" autostart="1" autorewind="0" animationatstart="0" transparentatstart="0" allowscan="1" enablecontextmenu="1" clicktoplay="0" invokeurls="1" defaultframe="datawindow"></u></div> <p align=left>9,隐藏播放器代码:</p><EMBED SRC="歌曲链接地址" autostart=true hidden=true loop=true> <p align=left>10,博客文章背景音乐代码(作为背景音乐来播放,隐藏了播放器):</p><bgsound src="音乐文件地址" loop=-1> <p align=left>11,博客文章直接调用WMP音乐代码(可视化效果,无面板按钮):</p><p style="TEXT-INDENT: 0px; TEXT-ALIGN: center"><br><object id=wmp1 height=280 width=500 classid=clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6><br><param NAME="URL" VALUE="音乐地址"><br><param NAME="rate" VALUE="1"><br><param NAME="balance" VALUE="0"><br><param NAME="currentPosition" VALUE="0"><br><param NAME="defaultFrame" VALUE=""><br><param NAME="playCount" VALUE="999"><br><param NAME="autoStart" VALUE="-1"><br><param NAME="currentMarker" VALUE="0"><br><param NAME="invokeURLs" VALUE="-1"><br><param NAME="baseURL" VALUE=""><br><param NAME="volume" VALUE="96"><br><param NAME="mute" VALUE="0"><br><param NAME="uiMode" VALUE="none"><br><param NAME="stretchToFit" VALUE="0"><br><param NAME="windowlessVideo" VALUE="0"><br><param NAME="enabled" VALUE="-1"><br><param NAME="enableContextMenu" VALUE="-1"><br><param NAME="fullScreen" VALUE="0"><br><param NAME="SAMIStyle" VALUE=""><br><param NAME="SAMILang" VALUE=""><br><param NAME="SAMIFilename" VALUE=""><br><param NAME="captioningID" VALUE=""><br><param NAME="enableErrorDialogs" VALUE="0"><br><param NAME="_cx" VALUE="13229"><br><param NAME="_cy" VALUE="7408"></object></p> <p align=center><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"><img src="http://bbs.muwen.com/fileuploaddir/4B266692180.gif"></p> <p align=left> </p></div><font color=black> <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></font> <div>另,type值有针对性,MP3和Wave文件通常用audio/mpeg,WMA用audio/x-ms-wma,Real类型的要用application/octet-stream,Flash类型用application/x-shockwave-flash。另外,如果不想让播放机的界面显示出来,可用hidden=true替代width和height两个参数。至于播放值的高与宽,多做尝试即可把握。</div></td></tr></tbody></table></div> </div>
| |
|