//打开没有菜单,没有工具栏并位置居于屏幕中央的新窗口
function hsOpenWindows(url,winName,widthStr,heightStr)
var toTop ;
var toLeft ;
var sw = screen.width ;
var sh = screen.height ; if (widthStr == '') widthStr = 0 ;
if (heightStr == '') heightStr = 0 ; toTop = parseInt((sh - heightStr)/2)-20 ;
toLeft = parseInt((sw - widthStr )/2) ;
//alert(toTop + '+' + toLeft) ;
window.open(url,"", "height=" + heightStr + ",width=" + widthStr + ",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,left=" + toLeft + ",top=" +toTop + ",'true'")
}
function hsOpenWindows(url,winName,widthStr,heightStr)
var toTop ;
var toLeft ;
var sw = screen.width ;
var sh = screen.height ; if (widthStr == '') widthStr = 0 ;
if (heightStr == '') heightStr = 0 ; toTop = parseInt((sh - heightStr)/2)-20 ;
toLeft = parseInt((sw - widthStr )/2) ;
//alert(toTop + '+' + toLeft) ;
window.open(url,"", "height=" + heightStr + ",width=" + widthStr + ",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,left=" + toLeft + ",top=" +toTop + ",'true'")
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货