<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>

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Will(小威) 的頭像
    Will(小威)

    魚魚的小水族箱

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