弹出窗口居中 function winopenAppication() { var cwidth=414; //弹出窗口宽度 var cheight=200; //弹出窗口高度 var curl="http://www.abc.com"; //弹出窗口URL地址 var cleft; var ctop; cleft=(screen.availWidth-cwidth)*.5; ctop=(screen.availHeight-cheight)*.5; window.open(curl,\'\',\'width=\'+cwidth+\',height=\'+cheight+\',scrollbar=no,resizable=no,left=\'+cleft+\',top=\'+ctop) }
function winopenAppication()
{
var cwidth=414; //弹出窗口宽度
var cheight=200; //弹出窗口高度
var curl="http://www.abc.com"; //弹出窗口URL地址
var cleft;
var ctop;
cleft=(screen.availWidth-cwidth)*.5;
ctop=(screen.availHeight-cheight)*.5;
window.open(curl,\'\',\'width=\'+cwidth+\',height=\'+cheight+\',scrollbar=no,resizable=no,left=\'+cleft+\',top=\'+ctop)
}
screen.availWidth 和 screen.availHeight
不起作用
a.moveTo(横坐标,纵坐标);</script>");
不起作用,该用什么语句取分辨率?