function popnew(url,title,width,height){ var w = 1024; var h = 768; if (document.all || document.layers){ w = screen.availWidth; h = screen.availHeight; } var leftPos = (w/2-width/2); var topPos = (h/2.3-height/2.3); window.open(url,title,"width="+width+",height="+height+",top="+topPos+",left="+leftPos+",scrollbars=no,resizable=no,status=no,location=no") }ff 和max是一样的
var w = 1024;
var h = 768; if (document.all || document.layers){
w = screen.availWidth;
h = screen.availHeight;
} var leftPos = (w/2-width/2);
var topPos = (h/2.3-height/2.3); window.open(url,title,"width="+width+",height="+height+",top="+topPos+",left="+leftPos+",scrollbars=no,resizable=no,status=no,location=no")
}ff 和max是一样的