<%
'******************************
'函數:SelPlay(strUrl,strWidth,StrHeight)
'參數:strUrl,動畫視頻路徑;strWidth,視頻高度;StrHeight,視頻高度
'作者:阿里西西
'日期:2007/7/13
'描述:取得用戶真實IP,對代理地址仍然有效;返回值:文本類型的IP地址
'示例:<%=SelPlay("mov.swf","120","90")%>
'******************************
SubSelPlay(strUrl,strWidth,StrHeight)
DimExts,isExt
IfstrUrl<>""Then
isExt=LCase(Mid(strUrl,InStrRev(strUrl,".")+1))
Else
isExt=""
EndIf
Exts="avi,wmv,asf,mov,rm,ra,ram,swf"
IfInstr(Exts,isExt)=0Then
Response.write"非法視頻文件"
Else
SelectCaseisExt
Case"avi","wmv","asf","mov"
Response.write"<EMBEDid=MediaPlayersrc="&strUrl&"width="&strWidth&"height="&strHeight&"loop=""false""autostart=""true""></EMBED>"
Case"mov","rm","ra","ram"
Response.Write"<OBJECTheight="&strHeight&"width="&strWidth&"classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA>"
Response.Write"<PARAMNAME=""_ExtentX""VALUE=""12700"">"
Response.Write"<PARAMNAME=""_ExtentY""VALUE=""9525"">"
Response.Write"<PARAMNAME=""AUTOSTART""VALUE=""-1"">"
Response.Write"<PARAMNAME=""SHUFFLE""VALUE=""0"">"
Response.Write"<PARAMNAME=""PREFETCH""VALUE=""0"">"
Response.Write"<PARAMNAME=""NOLABELS""VALUE=""0"">"
Response.Write"<PARAMNAME=""SRC""VALUE="""&strUrl&""">"
Response.Write"<PARAMNAME=""CONTROLS""VALUE=""ImageWindow"">"
Response.Write"<PARAMNAME=""CONSOLE""VALUE=""Clip"">"
Response.Write"<PARAMNAME=""LOOP""VALUE=""0"">"
Response.Write"<PARAMNAME=""NUMLOOP""VALUE=""0"">"
Response.Write"<PARAMNAME=""CENTER""VALUE=""0"">"
Response.Write"<PARAMNAME=""MAINTAINASPECT""VALUE=""0"">"
Response.Write"<PARAMNAME=""BACKGROUNDCOLOR""VALUE=""#000000"">"
Response.Write"</OBJECT>"
Response.Write"<BR>"
Response.Write"<OBJECTheight=32width="&strWidth&"classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA>"
Response.Write"<PARAMNAME=""_ExtentX""VALUE=""12700"">"