发歌代码

      摘录 2005-2-24 10:33
作为背景音乐
<EMBED src="地址" autostart="true" loop="true" hidden="no">

出现播放器
<embed src='地址' width=200 height=200 autostart=true loop=true></embed>


有图像的media播放器,自动调用网上的插件
<object id=nstv classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' width=280 height=265 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject>
<param name='URL' value='地址'>
<PARAM NAME='UIMode' VALUE='full'><PARAM NAME='AutoStart' VALUE='true'>
<PARAM NAME='Enabled' VALUE='true'>
<PARAM NAME='enableContextMenu' VALUE='false'>
<param name='WindowlessVideo' VALUE='true'></object>


无图像的media播放器,自动调用网上的插件
<object id=nstv classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' width=280 height=60 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject>
<param name='URL' value='地址'>
<PARAM NAME='UIMode' VALUE='full'><PARAM NAME='AutoStart' VALUE='true'>
<PARAM NAME='Enabled' VALUE='true'>
<PARAM NAME='enableContextMenu' VALUE='false'>
</object>


rm文件在线播放
<embed height=25 src=地址 type=audio/x-pn-realaudio-plugin width=50 autostart="false" controls="PlayButton">

autostart="false" 打开页面时处于候命状态,autostart="true" 打开页面时马上听声音 height=25 width=50 有不同数值,播放器面板有些不同

midi、au、avi文件在线播放
<EMBED SRC="地址"; width="47" height="24" AUTOSTART=TRUE>

asf文件在线播放
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body topmargin="0" leftmargin="0">
<object classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7.0 height=53 id=NSPlay0 name=NSPlay type=application/x-oleobject width=87 VIEWASTEXT standby="Loading Microsoft Windows Media Player components..." border="0"><param name="AudioStream" value="-1">
<param name="AutoSize" value="0">
<param name="AutoStart" value="1">
<param name="AnimationAtStart" value="-1">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="10">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="65280">
<param name="DisplayMode" value="0">
<param name="DisplaySize" value="1">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="-1">
<param name="EnableTracker" value="-1">
<param name="Filename" value="地址";>
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIstyle" value>
<param name="SAMIFileName" value>
<param name="selectionStart" value="-1">
<param name="selectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="0">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="-1">
<param name="ShowStatusBar" value="-1">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="-1">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="-1">
<param name="Volume" value="0">
<param name="WindowlessVideo" value="0">
</object>
其中<param name="AutoStart" value="0"> 0为打开页面处于待命状态,为1时打开页面直接播放 </body>
</html> 



MV 

支持asf,avi,mpg等格式,支持mms、http、nntp等协议,一般情况下,推荐使用这个 



<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1" width="450" height="400"> 
<param name="AudioStream" value="-1"> 
<param name="AutoSize" value="0"> 
<param name="AutoStart" value="-1"> 
<param name="AnimationAtStart" value="-1"> 
<param name="AllowScan" value="-1"> 
<param name="AllowChangeDisplaySize" value="-1"> 
<param name="AutoRewind" value="0"> 
<param name="Balance" value="0"> 
<param name="BaseURL" value> 
<param name="BufferingTime" value="5"> 
<param name="CaptioningID" value> 
<param name="ClickToPlay" value="-1"> 
<param name="CursorType" value="0"> 
<param name="CurrentPosition" value="-1"> 
<param name="CurrentMarker" value="0"> 
<param name="DefaultFrame" value> 
<param name="DisplayBackColor" value="0"> 
<param name="DisplayForeColor" value="16777215"> 
<param name="DisplayMode" value="0"> 
<param name="DisplaySize" value="2"> 
<param name="Enabled" value="-1"> 
<param name="EnableContextMenu" value="-1"> 
<param name="EnablePositionControls" value="-1"> 
<param name="EnableFullScreenControls" value="0"> 
<param name="EnableTracker" value="-1"> 

<param name="Filename" value="地址"> 



<param name="InvokeURLs" value="-1"> 
<param name="Language" value="-1"> 
<param name="Mute" value="0"> 
<param name="PlayCount" value="1"> 
<param name="PreviewMode" value="0"> 
<param name="Rate" value="1"> 
<param name="SAMILang" value> 
<param name="SAMIStyle" value> 
<param name="SAMIFileName" value> 
<param name="SelectionStart" value="-1"> 
<param name="SelectionEnd" value="-1"> 
<param name="SendOpenStateChangeEvents" value="-1"> 
<param name="SendWarningEvents" value="-1"> 
<param name="SendErrorEvents" value="-1"> 
<param name="SendKeyboardEvents" value="0"> 
<param name="SendMouseClickEvents" value="0"> 
<param name="SendMouseMoveEvents" value="0"> 
<param name="SendPlayStateChangeEvents" value="-1"> 
<param name="ShowCaptioning" value="0"> 
<param name="ShowControls" value="-1"> 
<param name="ShowAudioControls" value="-1"> 
<param name="ShowDisplay" value="0"> 
<param name="ShowGotoBar" value="0"> 
<param name="ShowPositionControls" value="-1"> 
<param name="ShowStatusBar" value="-1"> 
<param name="ShowTracker" value="-1"> 
<param name="TransparentAtStart" value="0"> 
<param name="VideoBorderWidth" value="0"> 
<param name="VideoBorderColor" value="0"> 
<param name="VideoBorder3D" value="0"> 
<param name="Volume" value="-40"> 
<param name="WindowlessVideo" value="0"> 
</object> 






MV 

Rm、ram各式专用 
支持RSTP、RTST等等协议 
播放RM专用代码 

<object ID="video" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT="280" WIDTH="360" align="center"> 
<param name="_ExtentX" value="9260"> 
<param name="_ExtentY" value="6360"> 
<param name="AUTOSTART" value="-1"> 
<param name="SHUFFLE" value="0"> 
<param name="PREFETCH" value="0"> 
<param name="NOLABELS" value="0"> 
<param name="SRC" value="地址"> 
<param name="CONTROLS" value="ImageWindow"> 
<param name="CONSOLE" value="Clip1"> 
<param name="LOOP" value="0"> 
<param name="NUMLOOP" value="0"> 
<param name="CENTER" value="0"> 
<param name="MAINTAINASPECT" value="0"> 
<param name="BACKGROUNDCOLOR" value="#000000"><embed SRC="4.rpm" type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1"CONTROLS="ImageWindow" HEIGHT="280" WIDTH="352" AUTOSTART="false"> 
</object> 
<p> 
<object ID="video" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT="40" WIDTH="360" align="center"> 
<param name="_ExtentX" value="9260"> 
<param name="_ExtentY" value="1058"> 
<param name="AUTOSTART" value="-1"> 
<param name="SHUFFLE" value="0"> 
<param name="PREFETCH" value="0"> 
<param name="NOLABELS" value="0"> 
<param name="CONTROLS" value="ControlPanel,StatusBar"> 
<param name="CONSOLE" value="Clip1"> 
<param name="LOOP" value="0"> 
<param name="NUMLOOP" value="0"> 
<param name="CENTER" value="0"> 
<param name="MAINTAINASPECT" value="0"> 
<param name="BACKGROUNDCOLOR" value="#000000"><embed type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="ControlPanel,StatusBar" HEIGHT="60" WIDTH="275" AUTOSTART="false"> 
</object>
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}