***********************************************
'
函数名:
SelPlay
'
?/p>
用:在网页中播放视频
'
?/p>
数:
strUrl
----
视频地址
strWidth
---显示视频宽
strHeight
---显示视频高
'***********************************************
Sub SelPlay(strUrl,strWidth,StrHeight)
Dim Exts,isExt
If strUrl <> "" Then
isExt = LCase(Mid(strUrl,InStrRev(strUrl, ".")+1))
Else
isExt = ""
End If
Exts = "avi,wmv,asf,mov,rm,ra,ram"
If Instr(Exts,isExt)=0 Then
Response.write "
非法视频文件
"
Else
Select Case isExt
Case "avi","wmv","asf","mov"
Response.write "<EMBED id=MediaPlayer src="&a
mp;strUrl&" width="&strWidth&" height="&strHeight&"
loop=""false"" autostart=""true""></EMBED>"
Case "mov","rm","ra","ram"
Response.Write "<OBJECT height="&strHeight&
" width="&strWidth&" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020
AFBBCCFA>"
Response.Write "<PARAM NAME=""_ExtentX"" V
ALUE=""12700"">"
Response.Write "<PARAM NAME=""_ExtentY"" V
ALUE=""9525"">"
Response.Write "<PARAM NAME=""AUTOSTART""&nb
sp;V
ALUE=""-1"">"