<div class="codetitle"> <span><a style="CURSOR: pointer" data="2712" class="copybut" id="copybut2712" onclick="doCopy('code2712')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code2712"> <br><br><br> <title></title> <br> <style type="text/css"><BR> .main{ background-color:Silver; width :200px; height :100px; margin-left:40%; margin-top :200px; text-align :center;}<BR> </style> <br> <script src="js/ui/jquery-1.7.1.min.js" type="text/javascript"></script><br> <script language="javascript" type="text/javascript"><BR> var n = 3;<BR> function showTime() {<BR> n--;<BR> $('#divMain').html(n + ' 秒后关闭窗口');<BR> if (n == 0) <BR> window.close();<BR> else<BR> setTimeout('showTime()', 1000);<BR> }<BR> </script><br><br><br> <form id="form1" runat="server"> <br> <div id="divMain" class="main"> <br><br> </div> <br> </form> <br><br><br> </div>