标签:blog io ar div on log cti ad ef
window.onload = window.onresize = function initialLoad(){updateOrientation();}
function updateOrientation(){
var contentType = ‘‘;
switch(window.orientation){
case 0:
contentType = ‘normal‘;
break;
case -90:
contentType = ‘left‘;
break;
case 90:
contentType = ‘right‘;
break;
case 180:
contentType = ‘flipped‘;
break;
};
alert(contentType);
}
标签:blog io ar div on log cti ad ef
原文地址:http://www.cnblogs.com/piercalex/p/4075688.html