<script type="text/javascript">

var URL = document.location.toString();
var useragent = navigator.userAgent;
useragent = useragent.toLowerCase();

if( useragent.indexOf('iphone') != -1 ) location.replace("iphone.htm");//iphone
else if( useragent.indexOf('ipad') != -1 || useragent.indexOf('ipod') != -1) location.replace("ipad.htm");//ipad
else if( useragent.indexOf('android') != -1 ) {
if( ConsiderLimits() )
{
location.replace("pad.htm"); // android pad
}else{
location.replace("phone.htm"); // android phone
}
}else{
location.replace("index.html"); // PC
}

function ConsiderLimits() {
if( screen.width >= 1024 && screen.height >= 600 )
return 1;
return 0;
}

</script>

Will(小威) 發表在 痞客邦 PIXNET 留言(0) 人氣()