媒體|線上
現在有自己blog的人越來越多了,大家也都想在自己的blog上勾畫出自己的特色,比如個性的首頁、個性的介紹以及向大家推薦自己喜歡的音樂等。為了給大家也給自己提供方便,整理了一些流行格式的線上播放代碼,以備添加之用。
【文中的一些標號的說明】
"Filename with full URL"——待播放檔案的檔案名稱,前面帶上絕對路徑,或者本站的相對路徑。
width_num——指定一個作為寬度的數字;
height_num——指定一個作為高度的數字;
1.mid
<embed src="Filename with full URL" type="audio/midi" hidden="false"
autostart="true" loop="true" height=height_num width=width_num></embed>
2.mp3
<embed controller="true" width="width_num" height="height_num"
src="Filename with full URL" border="0"
pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed>
3.avi
<embed src="Filename with full URL" border="0" width="width_num"
height="height_num" type="application/x-mplayer2"></embed>
4.flash
<embed src="Filename with full URL" pluginspage="http://www.macromedia.com
/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="width_num" height="height_num" play="true" loop="true"
quality="high" scale="showall" menu="true"></embed>
5.mpg
<embed src="Filename with full URL" border="0" width="width_num"
height="height_num" type="application/x-mplayer2"></embed>
6.mov
<embed controller="true" width="width_num" height="height_num"
src="Filename with full URL" border="0" pluginspage="http://www.apple.com/
quicktime/download/indext.html"></embed>
7.rm
<OBJECT>" height="height_num">
<PARAM NAME="CONTROLS" VALUE="ImageWindow">
<PARAM NAME="AUTOSTART" Value="true">
<PARAM NAME="SRC" VALUE="Filename with full URL">
<embed height="height_num" width="width_num" controls="ImageWindow"
src="Filename with full URL" type="audio/x-pn-realaudio-plugin" autostart="true" nolabels="0" autogotourl="-1"></OBJECT>
8.上面的都是使用播放器的,如果只是想播放背景音樂的話可以使用如下簡單語句:
<bgsound src="Filename with full URL"> loop=1>
loop後面是迴圈的次數,-1代表無限迴圈。