代码如下:
<html xmlns="
<head runat="server">
<title></title>
<style type ="text/css" >
main{ background
color:Silver; width :
px; height :
px; margin
left:
%; margin
top :
px; text
align :center;}
</style>
<script src="js/ui/jquery
min
js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
var n =
;
function showTime() {
n
;
$(
#divMain
)
html(n +
秒后关闭窗口
);
if (n ==
)
window
close();
else
setTimeout(
showTime()
);
}
</script>
</head>
<body onload ="showTime()">
<form id="form
" runat="server">
<div id ="divMain" class ="main" >
</div>
</form>
</body>
</html>