基于jquery的获取浏览器窗口大小的代码

时间:2011-03-28    点击:95   
复制代码 代码如下:

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);
jquery.combobox中文api和例子,修复了上面的小bug
基于Jqurey的下拉框改变动态添加和删除表格实现代码
基于jQuery的可用于选项卡及幻灯的切换插件
jQuery autocomplate 自扩展插件、自动完成示例代码
JQuery自适应IFrame高度(支持嵌套 兼容IE,ff,safafi,chrome)
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved