nowphp

导航

 

function windowOpen(sUrl) {
var iWindowWidth = $(window).width();
var iWindowHeight = $(window).height();

var iWidth = iWindowWidth - 200;
var iHeight = iWindowHeight - 100;

var iLeft = Math.floor((iWindowWidth - iWidth) / 2);
var iTop = Math.floor((iWindowHeight - iHeight) / 2);

var sParams = "width=" + iWidth + ",height=" + iHeight + ",left=" + iLeft + ",top=" + iTop + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no, status=no";
window.open(ROOT_URL+sUrl, 'window-'.g_iWindowIndex++, sParams);
}

posted on 2017-09-02 16:12  不断成长  阅读(108)  评论(0编辑  收藏  举报