728x90
<script type="text/javascript">
// goto mobile page
//http://en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones
// goto mobile page
//http://en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones
if (navigator.userAgent.match(/iPad/) == null && navigator.userAgent.match(/iPhone|Mobile|UP.Browser|Android|BlackBerry|Windows CE|Nokia|webOS|Opera Mini|SonyEricsson|opera mobi|Windows Phone|IEMobile|POLARIS/) != null)
location.href = "http://" + location.host + "/m.htm" + location.pathname;
</script>
728x90
'script' 카테고리의 다른 글
상태표시줄에 url감추기 (0) | 2013.04.27 |
---|---|
새로고침 막는 소스 (0) | 2013.04.27 |
utf-8 에서 js 파일 include 시 alert 에서 한글 깨짐 증상 해결법 (0) | 2013.04.27 |
Ajax의 핵심 객체 - XMLHttpRequest Object (0) | 2013.04.27 |
iframe size 동적으로 맞추기 (0) | 2013.04.27 |
댓글