<script language="javascript">
function newWind()
{
var x = window.screen.width;
var y = window.screen.height;
x =(x - 300) / 2;
y =(y - 250) / 2;
window.open("1.html",'',"top=" + y + ",left=" + x);
}
</script>
function newWind()
{
var x = window.screen.width;
var y = window.screen.height;
x =(x - 300) / 2;
y =(y - 250) / 2;
window.open("1.html",'',"top=" + y + ",left=" + x);
}
</script>
解决方案 »
- 有关jquery的标签选择问题。
- easyui form ajax方式提交返回出现问题
- 新人求助:js封装的方式?
- 将grid中选中行的数据传给弹出的window时 window中的form的id必须与grid中的fields同名,不然获取不到数据 ??
- getElementsByName 的严重问题
- Form中的输入框,怎样使在输入框输入回车键,不会自动提交form
- document.frames["Myframe"].document.write(...),现在var s="Myframe",但是document.frames[s].document.write(...),出错!还有什么办
- 关于Cookie的一个问题,急!
- 请教没有扩展名的CGI是如何设置的
- Select有没有类似RemoveAll的方法,一次删除所有options?
- 当改变一select框的值后,根据此select框的值判断,如不符合条件,希望此select的值变为先前的值,如何实现?
- font value 的显示。 高手请帮忙!50分,马上给
另外,我如果要打开指定宽,高的页面,应该怎么改哪window.open('1.html','','top=' + y + ',left=' + x+',width=400,height=400');
{
var xtop = window.screen.height;
xtop =(xtop - height) / 2;
}function yleft(width)
{
var yleft = window.screen.width;
yleft =(yleft - width) / 2;}window.open ('1.html','','top='+xtop(400)+',left='+yleft(600)+',width=600,height=400,resizable=no,scrollbars=auto')我这样改为什么新窗体还在不居中,总帖在在左上角? 哪里出问题了