[<script type="text/javascript">
function chkMobile(){
//모바일 페이지로 이동.
if(document.referrer.substring(0,22)!="모바일 홈페이지 주소"){
var uAgent = navigator.userAgent.toLowerCase();
var mobileKeyWords = new Array('iPhone', 'iPod', 'BlackBerry', 'Android', 'Windows CE', 'LG', 'MOT', 'SAMSUNG', 'SonyEricsson', 'Nokia', 'Opera mini', 'Webos', 'Mot', 'Opera Mobi', 'ieMobile', 'LG');
for (var word in mobileKeyWords){
if (navigator.userAgent.match(mobileKeyWords[word]) != null){
parent.window.location.href='모바일 홈페이지 주소';
break;
}
}
}
}
var main={
init: function(){
//Mobile Device Check
chkMobile();
}
}
main.init();
</script>]
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | XE와 연관된 자료를 올릴 생각입니다. | 공수래 | 2013.03.15 | 7837 |
» | 모바일로 홈페이지 접속시 원하는 모바일페이지로 이동하기 | 공수래 | 2013.08.01 | 5039 |