各种媒体在线播放代码

王朝other·作者佚名  2008-05-20
窄屏简体版  字體: |||超大  举报/纠错

现在有自己blog的人越来越多了,大家也都想在自己的blog上勾画出自己的特色,比如个性的首页、个性的介绍以及向大家推荐自己喜欢的音乐等。为了给大家也给自己提供方便,整理了一些流行格式的在线播放代码,以备添加之用。

【文中的一些标号的说明】

"FilenamewithfullURL"――待播放文件的文件名,前面带上绝对路径,或者本站的相对路径。

width_num――指定一个作为宽度的数字;

height_num――指定一个作为高度的数字;

1.mid

<embedsrc="FilenamewithfullURL"type="audio/midi"hidden="false"

autostart="true"loop="true"height=height_numwidth=width_num></embed>

2.mp3

<embedcontroller="true"width="width_num"height="height_num"

src="FilenamewithfullURL"border="0"

pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed>

3.avi

<embedsrc="FilenamewithfullURL"border="0"width="width_num"

height="height_num"type="application/x-mplayer2"></embed>

4.flash

<embedsrc="FilenamewithfullURL"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

<embedsrc="FilenamewithfullURL"border="0"width="width_num"

height="height_num"type="application/x-mplayer2"></embed>

6.mov

<embedcontroller="true"width="width_num"height="height_num"

src="FilenamewithfullURL"border="0"pluginspage="http://www.apple.com/

quicktime/download/indext.html"></embed>

7.rm

<OBJECT>"height="height_num">

<PARAMNAME="CONTROLS"VALUE="ImageWindow">

<PARAMNAME="AUTOSTART"Value="true">

<PARAMNAME="SRC"VALUE="FilenamewithfullURL">

<embedheight="height_num"width="width_num"controls="ImageWindow"

src="FilenamewithfullURL"type="audio/x-pn-realaudio-plugin"autostart="true"nolabels="0"autogotourl="-1"></OBJECT>

8.上面的都是使用播放器的,如果只是想播放背景音乐的话可以使用如下简单语句:

<bgsoundsrc="FilenamewithfullURL">loop=1>

loop后面是循环的次数,-1代表无限循环。

举报/纠错
 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005-2025 王朝網路 版權所有 聯絡我們導航