4,008
社区成员
发帖
与我相关
我的任务
分享
<html><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> dhtml.window.simulateMinimize.html </title>
<meta name="generator" content="editplus" />
<meta name="author" content="Gao YiXiang" />
<meta name="email" content="yixianggao@126.com" />
<meta name="keywords" content="javascript dhtml dom" />
<meta name="description" content="I love web development." />
</head>
<body>
<h3> 窗体打开后 自动最小化、6 秒后自动还原!注:IE6sp1, FF2 单窗口模式下测试可用。 </h3>
<div id="divShow"> </div>
<script type="text/javascript">
<!--
var iTimeoutForMinimize = 0;
var iTimeoutForResume = 5;
var oShow = document.getElementById("divShow");
showMessage();
var iTimerID = setInterval(showMessage, 1000);
setTimeout(minimizeWindow, 1000*iTimeoutForMinimize);
function showMessage()
{
oShow.innerHTML = "Minimize current window after " + iTimeoutForMinimize-- + " seconds.";
}
function minimizeWindow()
{
clearInterval(iTimerID);
resizeTo(0, 0);
moveTo(screen.availWidth, screen.availHeight);
setTimeout(resumeWindow, 1000*iTimeoutForResume);
}
function resumeWindow()
{
moveTo(-4, -4);
resizeTo(screen.availWidth, screen.availHeight);
}
//-->
</script>
</body>
</html>
<html>
<head>
<title>U</title>
<script language="javascript">
function ccc()
{
resizeTo(1000, 500);
}
resizeTo(0, 0);
window.setTimeout("ccc()", 3000);
</script>
</head>
<body style="width:0;height:0">
<table border="1" width=0 height=0>
<tr>
<td style="width:10px;color:red;"> 0 </td>
<td> aa </td>
</tr>
<tr>
<td style="width:10px"> 1231234113240 </td>
<td> aa </td>
</tr>
</table>
</body>
</html>