<script type="text/javascript">
//check browser
var isie=(/msie/i).test(navigator.userAgent); //ie
var isie6=(/msie 6/i).test(navigator.userAgent); //ie 6
var isie7=(/msie 7/i).test(navigator.userAgent); //ie 7
var isie8=(/msie 8/i).test(navigator.userAgent); //ie 8
var isie9=(/msie 9/i).test(navigator.userAgent); //ie 9
var isfirefox=(/firefox/i).test(navigator.userAgent); //firefox
var isapple=(/applewebkit/i).test(navigator.userAgent); //safari,chrome
var isopera=(/opera/i).test(navigator.userAgent); //opera
var isios=(/(ipod|iphone|ipad)/i).test(navigator.userAgent);//ios
var isipad=(/(ipad)/i).test(navigator.userAgent);//ipad
var isandroid=(/android/i).test(navigator.userAgent);//android
var device;
if(isie7 || isie8 || isie9){
 isie6=false;
}
if(isie9){
 isie=false;
}
if(isapple || isios || isipad || isandroid){
 alert("모바일기기로 접속하였습니다.");
 window.location = "../rs/main.jsp?dvType=m";
 
}else{
 alert("PC로 접속하였습니다.");
 window.location = "../rs/main.jsp?dvType=p";
}
</script>


블로그 이미지

왕왕왕왕

,