欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

基于jquery的獲取瀏覽器窗口大小的代碼

 更新時間:2011年03月28日 18:49:14   作者:  
今天正好用到這個,就網(wǎng)上搜了搜,貼出來了。需要的朋友可以參考下。
復(fù)制代碼 代碼如下:

function getTotalHeight(){
if($.browser.msie){
return document.compatMode == "CSS1Compat"? document.documentElement.clientHeight : document.body.clientHeight;
}
else {
return self.innerHeight;
}
}

function getTotalWidth (){
if($.browser.msie){
return document.compatMode == "CSS1Compat"? document.documentElement.clientWidth : document.body.clientWidth;
}
else{
return self.innerWidth;
}
}

var do_height = getTotalHeight();
var do_width = getTotalWidth();
alert("do_height=="+do_height+"\ndo_width=="+do_width);

相關(guān)文章

最新評論