|
- function OS_Type()
- userAgent = LCase(Request.ServerVariables("HTTP_USER_AGENT"))
- Dim mobile, c, rV
- mobile = Split("windows|iphone|ipad|ipod|android|blackberry|mini|windowssce|palm", "|")
- rV = "其他系统"
- For c = 0 To UBound(mobile, 1)
- If Instr(userAgent, mobile(c)) > 0 Then
- rV = mobile(c)
- Exit For
- End If
- Next
-
- OS_Type = rV
- End Function
- function Get_OS_Chinese(str)
- select case str
- case "windows"
- Get_OS_Chinese="Window"
-
- case "iphone"
- Get_OS_Chinese="苹果"
-
- case "android"
- Get_OS_Chinese="安卓"
-
- case "ipad"
- Get_OS_Chinese="苹果平板"
-
- case "blackberry"
- Get_OS_Chinese="黑莓"
-
- case "ipad"
- Get_OS_Chinese="苹果平板"
-
- case else
- Get_OS_Chinese="未知"
- end select
-
-
- End Function
复制代码 |
|