스마트폰에서 www.xxx.com 하면 자동으로 모바일 주소 m.xxx.com 으로 이동
좋은 팁인듯하여 퍼왔습니다.
출처 : okjsp (문제 되면 삭제하겠습니다~)
<script type="text/javascript">
if (navigator.userAgent.match(/iPad/) == null && navigator.userAgent.match(/Mobile|Windows CE|Windows Phone|Opera Mini|POLARIS/) != null)
location.href = "http://" + location.host + "/m" + location.pathname;
</script><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
출처 : okjsp (문제 되면 삭제하겠습니다~)
<script type="text/javascript">
if (navigator.userAgent.match(/iPad/) == null && navigator.userAgent.match(/Mobile|Windows CE|Windows Phone|Opera Mini|POLARIS/) != null)
location.href = "http://" + location.host + "/m" + location.pathname;
</script><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 2개