Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
[ASP] 모바일인지 pc인체 체크하기 본문
- 모바일인지 pc인체 체크하기
'모바일인지 pc인지 체크하기 Function isItMobile() Dim chk chk = False mob = "iPod|iPhone|Android|BlackBerry|SymbianOS|SCH-M\d+|Opera Mini|Windows CE|Nokia|SonyEricsson|webOS|PalmOS" splitmo = split(mob,"|") agent = Request.ServerVariables("HTTP_USER_AGENT") For i = 0 to UBound(splitmo ) If InStr(agent,splitmo (i)) > 0 Then chk = True Exit For End If Next isItMobile = chk End Function If isItMobile() = False Then response.write "PC" Else response.write "MOBILE" End If
'랭귀지 > ASP' 카테고리의 다른 글
asp) MSXML2.DOMDocument 버전확인 (0) | 2021.08.03 |
---|---|
[ASP] 저장프로시저 사용시 parameters (0) | 2021.07.07 |
ASP에서 날짜의 요소만 보여주는 함수 (0) | 2021.06.03 |
VBScript MsgBox 줄바꿈(개행) 방법 (0) | 2019.10.30 |
asp 변수에서 숫자만 걸러내는 함수 (0) | 2019.10.23 |
0 Comments