在帖子中插入音视频的html代码

支持绝大多数的常用音视频格式

今天拿来和大家分享

适用于所有的IPB论坛,当然也包括vc的,我已经在blog里使用了,效果挺好的

虽然是html代码,不过论坛和blog刚好也支持这个功能

只要选择html开启-自动换行模式就可以了happy.gif

MP3&WMA

<object id="SoutingPlayer" width="400" height="64" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" 
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" hspace="5">
<param name="URL" value="{content}"><param name="AutoStart" value="1"><param name="PlayCount" value="100">
<param name="volume" value="80"><param name="EnableContextMenu" value="0"></object>

Windows Media Player 10

<object id="SoutingPlayer" width="400" height="370" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" 
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" hspace="5">
<param name="URL" value="{content}"><param name="AutoStart" value="1"><param name="PlayCount" value="100">
<param name="volume" value="80"><param name="EnableContextMenu" value="1"></object>

RM

<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=OBJECT id=RAOCX width=400 height=300>
<PARAM NAME=SRC VALUE={content}><PARAM NAME=CONSOLE VALUE=Clip1>
<PARAM NAME=CONTROLS VALUE=imagewindow><PARAM NAME=AUTOSTART VALUE=true>
</OBJECT><br>
<OBJECT classid=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=32 id=video2 width=400>
<PARAM NAME=SRC VALUE={content}><PARAM NAME=AUTOSTART VALUE=-1>
<PARAM NAME=CONTROLS VALUE=controlpanel>
<PARAM NAME=CONSOLE VALUE=Clip1></OBJECT>

RM without Video

<embed name="rplayer" type="audio/x-pn-realaudio-plugin" src="{content}"
controls="ControlPanel,StatusBar" width=460 height=68 border=0 autostart=true loop=true></embed> 

MOV(QuickTime)

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="420" HEIGHT="276" 
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"> <br />
<PARAM NAME="controller" VALUE="TRUE"> <br /><PARAM NAME="type" VALUE="video/quicktime"> <br />
<PARAM NAME="autoplay" VALUE="true"> <br /><PARAM NAME="target" VALUE="myself"> <br />
<PARAM NAME="src" VALUE="{content}"> <br /><PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html"> <br />
<EMBED WIDTH="420" HEIGHT="276" CONTROLLER="TRUE" TARGET="myself" SRC="{content}" type="video/quicktime" BGCOLOR="#000000" BORDER="0"
PLUGINSPAGE="http://www.apple.com/quicktime/download/indext.html"></EMBED> <br /></OBJECT>

只要把里面的{content}换为相应的地址就可以了

posted @ 2013-02-01 11:42  Mr.Thanks  阅读(371)  评论(0编辑  收藏  举报