<script type="text/javascript">

// 모바일 기기 여부 변수에 담기

var m_userAgent_All = navigator.userAgent.toLowerCase();

var m_userAgent = '';

var m_mobile = new Array('iphone', 'ipod', 'ipad', 'android', 'blackberry', 'windows ce', 'nokia', 'webos', 'opera mini', 'sonyericsson', 'opera mobi', 'iemobile', 'mot');

var m_mobileCheck = 0;


for(var m_count=0; m_count<m_mobile.length; m_count++) {

if(m_userAgent_All.indexOf(m_mobile[m_count]) != -1) {

m_mobileCheck++;

m_userAgent = m_mobile[m_count];

}

}


var m_platform = navigator.platform.toLowerCase();

var m_platform_filter = new Array('win16', 'win32', 'win64', 'mac', 'macintel');



for(var m_count=0; m_count<m_platform_filter.length; m_count++) {

if(m_platform.indexOf(m_platform_filter[m_count]) != -1) {

m_mobileCheck = 0;

}

}


//=================================================================================


// 모바일 체크 변수 사용

if(m_mobileCheck > 0){

alert('모바일기기 입니다.');

return;

}

</script>

Posted by kunoo
,