国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

asp 判斷!客戶端操作系統

2019-11-02 15:30:57
字體:
來源:轉載
供稿:網友

判斷客戶端操作系統
 Function GetOs(content,systemOrBrowser)
  Dim temp
  temp = Split(content,";")
  Select Case systemOrBrowser
   Case 0
    If InStr(Content,"Windows NT 6.0") Then
     GetOs = "Windows Vista"
    ElseIf InStr(Content,"Windows NT 5.2") Then
     GetOs = "Windows 2003"
    ElseIf InStr(Content,"Windows NT 5.1") Then
     GetOs = "Windows XP"
    ElseIf InStr(Content,"Windows NT 5.0") Then
     GetOs = "Windows 2000"
    ElseIf InStr(Content,"Windows NT") Then
     GetOs = "Windows NT"
    ElseIf InStr(Content,"Windows 9") Then
     GetOs = "Windows 9x"
    ElseIf InStr(Content,"unix") Then
     GetOs = "Unix"
    ElseIf InStr(Content,"linux") Then
     GetOs = "Linux"
    ElseIf InStr(Content,"SunOS") Then
     Get

歐美電影[www.aikan.tv/xzhtml/10/]
Os = "SunOS"
    ElseIf InStr(Content,"BSD") Then
     GetOs = "BSD"
    ElseIf InStr(Content,"Mac") Then
     GetOs = "Mac"
    Else
     GetOs = "Other"
    End If
   Case 1
    If InStr(content,"Opera") Then
     GetOs = Replace(Left(content,InStr(content,"(") - 1),"/"," ")
    ElseIf InStr(content,"MSIE") > 0  Then
     GetOs = Trim(temp(1))
    Else
     GetOs = Replace(Right(temp(4),Len(temp(4)) - InstrRev(temp(4)," ")),"/"," ")
    End if
  End Select
 End Function

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 炉霍县| 青铜峡市| 遵义市| 铁岭县| 奉节县| 杭锦旗| 金溪县| 芮城县| 罗甸县| 资阳市| 桃园县| 商城县| 司法| 霍州市| 鄢陵县| 石阡县| 汶川县| 道孚县| 睢宁县| 忻州市| 六枝特区| 儋州市| 泰来县| 米脂县| 长沙市| 辛集市| 石阡县| 博湖县| 义乌市| 武威市| 南陵县| 腾冲县| 凤山市| 福海县| 温州市| 元氏县| 拉萨市| 岱山县| 南木林县| 团风县| 和顺县|