ASP开发中如何使用函数实现视频
我们在开发的时候,都要使用函数实现很多功能,但是自定义的信息函数有一定的难度,希望爱站技术频道小编通过ASP开发中如何使用函数实现视频的介绍后,我们在后续的操作中会变得非常方便。
'******************************
'函数:SelPlay(strUrl,strWidth,StrHeight)
'参数:strUrl,动画视频路径;strWidth,视频高度;StrHeight,视频高度
'作者:阿里西西
'日期:2007/7/13
'描述:取得用户真实IP,对代理地址仍然有效;返回值:文本类型的IP地址
'示例:
'******************************
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,swf"
If Instr(Exts,isExt)=0 Then
Response.write "非法视频文件"
Else
Select Case isExt
Case "avi","wmv","asf","mov"
Response.write ""
Case "mov","rm","ra","ram"
Response.Write ""
Response.Write "
"
Response.Write ""
Case "swf"
Response.Write ""
Case else
Response.Write ""
End Select
End If
End Sub
%>
上文是爱站技术频道小编介绍的ASP开发中如何使用函数实现视频,不知道大家了解的怎样了呢?想要熟记于心,赶快来操作一番吧!
上一篇:ASP开发之重定向的操作步骤
下一篇:日期格式化为所需格式的实现详解