//关闭窗口、窗口点击事件
//设置弹出窗口居中问题
//weidth、height为设置的窗体大小
$.centerWin = function(url,width,height){
//取到屏幕的大小
var screenWidth = screen.width;
var screenHeight = screen.height;
//设置窗体居中
var top = (screenHeight-height)/2;
var left = (screenWidth-width)/2;
//设置跳转页面
//计算好的居中大小的值
//window.open(url,name,feature);
window.open(url,"","width="+width+",height="+height+",top="+top+",left="+left);
}
//设置弹出窗口居中问题
//weidth、height为设置的窗体大小
$.centerWin = function(url,width,height){
//取到屏幕的大小
var screenWidth = screen.width;
var screenHeight = screen.height;
//设置窗体居中
var top = (screenHeight-height)/2;
var left = (screenWidth-width)/2;
//设置跳转页面
//计算好的居中大小的值
//window.open(url,name,feature);
window.open(url,"","width="+width+",height="+height+",top="+top+",left="+left);
}