现在有自己blog的人越来越多了,大家也都想在自己的blog上勾画出自己的特色,比如个性的首页、个性的介绍以及向大家推荐自己喜欢的音乐等。为了给大家也给自己提供方便,整理了一些流行格式的在线播放代码,以备添加之用。
**
** 【文中的一些标号的说明】
"Filename with full URL"——待播放文件的文件名,前面带上绝对路径,或者本站的相对路径。
width_num——指定一个作为宽度的数字;
height_num——指定一个作为高度的数字;
**1.mid **
1<embed autostart="true" height="height_num" hidden="false" loop="true" src="Filename with full URL" type="audio/midi" width="width_num"/>
** 2.mp3 **
1<embed border="0" controller="true" height="height_num" pluginspage="http://www.apple.com/quicktime/download/indext.html" src="Filename with full URL" width="width_num"/>
** 3.avi **
1<embed border="0" height="height_num" src="Filename with full URL" type="application/x-mplayer2" width="width_num"/>
** 4.flash **
1<embed height="height_num" loop="true" menu="true" play="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="high" scale="showall" src="Filename with full URL" type="application/x-shockwave-flash" width="width_num"/>
** 5.mpg **
1<embed border="0" height="height_num" src="Filename with full URL" type="application/x-mplayer2" width="width_num"/>
** 6.mov **
1<embed border="0" controller="true" height="height_num" pluginspage="http://www.apple.com/quicktime/download/indext.html" src="Filename with full URL" width="width_num"/>
** 7.rm **
1<object> " height= "height_num">
2
3<param name="CONTROLS" value="ImageWindow"/>
4<param name="AUTOSTART" value="true"/>
5<param name="SRC" value="Filename with full URL"/>
6<embed autogotourl="-1" autostart="true" controls="ImageWindow" height="height_num" nolabels="0" src="Filename with full URL" type="audio/x-pn-realaudio-plugin" width="width_num"/></object>
8.上面的都是使用播放器的,如果只是想播放背景音乐的话可以使用如下简单语句:
1<bgsound src="Filename with full URL"/>
loop= 1 >
loop后面是循环的次数,-1代表无限循环。