用javascript使弹出窗口居中,在线等待......马上给分,多谢 a = window.open(...);a.moveTo(screen.width,screen.height); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <SCRIPT LANGUAGE="JavaScript"><!--function centerWindow() {if (document.all)var xMax = screen.width, yMax = screen.height;elseif (document.layers)var xMax = window.outerWidth, yMax = window.outerHeight;elsevar xMax = 640, yMax=480;var xOffset = (xMax - 200)/2, yOffset = (yMax - 200)/2;window.open('center.htm','myExample7', 'width=200,height=200,screenX='+xOffset+',screenY='+yOffset+', top='+yOffset+',left='+xOffset+'');}centerWindow();//--></SCRIPT> a.moveTo((screen.width-a.document.body.offsetWidth)/2,(screen.height-a.document.body.offsetHeight)/2); jwplayer 调用seek方法后 getPosition()不同步问题 关于prototype的问题,高手进来指教一下 400分,求改一个JS导航 求助JS 求一个正则表达式 看看这个javascript为什么不能实现页面跳转 再线急等,请各位大虾帮忙 在JS中eval()函数是什么意思 问一个老是搞得很混淆的问题 求助 非常急的问题,大家帮忙 想问一下,哪里有类似于tab控件做的网站,帮忙推荐一下。谢谢。
<!--
function centerWindow() {
if (document.all)
var xMax = screen.width, yMax = screen.height;
else
if (document.layers)
var xMax = window.outerWidth, yMax = window.outerHeight;
else
var xMax = 640, yMax=480;var xOffset = (xMax - 200)/2, yOffset = (yMax - 200)/2;window.open('center.htm','myExample7', 'width=200,height=200,screenX='+xOffset+',screenY='+yOffset+', top='+yOffset+',left='+xOffset+'');
}centerWindow();
//-->
</SCRIPT>