按下按扭定位打开新窗口
中国哲士网“百科知识”为您提供生活百科
 
相 关 文 章
Win98与Win2000共存系统的优化
Windows 2000常见问题解答
鲜为人知的“Windows 2000/XP受限”问题
挽救崩溃的Windows系统
从Win98到WinMe升级须知
安装WinXP SP2后BT速度却变慢的原因
ADSL工作原理及宽带路由器选购指南
手机病毒ABC
嵌入式系统发展趋势
中国芯片产业高速成长 增速为同期全球之最
AMD64位移动CPU上市 戴尔仍表示不用其芯片
胡启恒委员建言:重要网站应注册使用CN域名
Windows XP系统注册表设置技巧
内存故障分析
防止IE浏览器被恶意修改的小技巧
快速重装Windows操作系统秘籍[三]
构建“不公开”的家用网络
网管培训教程之DOS命令(中篇)

本 站 统 计


 

按下按扭定位打开新窗口


源代码:


<HTML>
<HEAD>
<TITLE>Window Position</TITLE>

<SCRIPT LANGUAGE="JavaScript">

function openZero() {
zero=open("","zero","height=175,width=175,status=no,toolbar=no,directories=no,
menubar=no,location=no,resizable=no,left=0,top=0");
zero.document.write("<html><title>Windows!</title>"
+ "<body bgcolor='white' onblur=window.close()>"
+ "<b><a href='javascript:window.close()'>距左上角0像素窗口:<br>"
+ "点击此处自动关闭</a></b> "
+ "</body></html><p>");
}
function openHundred() {
one=open("","one","height=175,width=175,status=no,toolbar=no,directories=no,
menubar=no,location=no,resizable=no,left=100,top=100");
one.document.write("<html><title>Windows!</title>"
+ "<body bgcolor='white' onblur=window.close()>"
+ "<b><a href='javascript:window.close()'>距左上角100像素窗口:<br>"
+ "点击此处自动关闭</a></b> "
+ "</body></html><p>");
}
function openTwohundred() {
two=open("","two","height=175,width=175,status=no,toolbar=no,directories=no,
menubar=no,location=no,resizable=no,left=200,top=200");
two.document.write("<html><title>Windows!</title>"
+ "<body bgcolor='white' onblur=window.close()>"
+ "<b><a href='javascript:window.close()'>距左上角200像素窗口:<br>"
+ "点击此处自动关闭</a></b> "
+ "</body></html><p>");
}
function openThreehundred() {
three=open("","three","height=175,width=175,status=no,toolbar=no,directories=no,
menubar=no,location=no,resizable=no,left=300,top=300");
three.document.write("<html><title>Windows!</title>"
+ "<body bgcolor='white' onblur=window.close()>"
+ "<b><a href='javascript:window.close()'>距左上角300像素窗口:<br>"
+ "点击此处自动关闭</a></b> "
+ "</body></html><p>");
}
// End -->
</script>
</HEAD>

<BODY BGCOLOR=#ffffff vlink=#0000ff>

<P>
<center>

<form>
<input type="button" value="距左上角0像素窗口" onclick="openZero()"><br>
<input type="button" value="距左上角100像素窗口" onclick="openHundred()"><br>
<input type="button" value="距左上角200像素窗口" onclick="openTwohundred()"><br>
<input type="button" value="距左上角300像素窗口" onclick="openThreehundred()"><br>
</form>


<P>
</center>