아이폰, 아이팟, 윈도우모바일, 심비안, 블랙베리, 안드로이드로 접속시 웹하드로 바로 접속되게 만들어주는 소스.
아닐 경우 다른 사이트로 이동.
Javascript, HTML에서 바로 사용이 가능함.
<script type="text/javascript">
if((navigator.userAgent.match(/iPhone/i))
||
(navigator.userAgent.match(/iPod/i))
||
(navigator.userAgent.match(/Windows CE/i))
||
(navigator.userAgent.match(/Symbian/i))
||
(navigator.userAgent.match(/BlackBerry/i))
||
(navigator.userAgent.match(/Android/i)) )
{
parent.window.location.href='http://heeseop.lgnas.com:8000';
} else { parent.window.location.href='http://heeseop.lgnas.com/gb/bbs/board.php?bo_table=Guestbook'; }
</script>
if((navigator.userAgent.match(/iPhone/i))
||
(navigator.userAgent.match(/iPod/i))
||
(navigator.userAgent.match(/Windows CE/i))
||
(navigator.userAgent.match(/Symbian/i))
||
(navigator.userAgent.match(/BlackBerry/i))
||
(navigator.userAgent.match(/Android/i)) )
{
parent.window.location.href='http://heeseop.lgnas.com:8000';
} else { parent.window.location.href='http://heeseop.lgnas.com/gb/bbs/board.php?bo_table=Guestbook'; }
</script>
'Computer > Programing' 카테고리의 다른 글
텍스트 분석 후 특정파일만 출력 (0) | 2019.02.07 |
---|---|
Snoopy 이용법해서 파싱 방법 (0) | 2019.02.07 |
텔레그램 봇 TelegramBotPHP 활용 ( 문자 및 사진보내기 ) (0) | 2019.02.07 |
Mysql 입력 출력 (0) | 2019.02.07 |
Parsing - PHP (0) | 2019.02.07 |
CSS 사용법 / 차이 (0) | 2019.02.07 |
접속한 사용자의 IP 주소 기록 php (0) | 2019.02.07 |
정규식 (0) | 2016.06.23 |