<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><html xmlns="http://www.w3.org /1999/xhtml"><br><head runat="server"><br> <title></title><br> <style type ="text/css" ><br> .main{ 배경색:실버; 너비 : 200px; 높이 : 100px; 왼쪽 여백:40%; 여백 상단:200px; text-align :center;}<br> </style><br> <script src="js/ui/jquery-1.7.1.min.js" type="text/javascript"></ script><br> <script 언어="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></head><br><body onload ="showTime()"><br> <form id="form1" runat="server"><br> <div id ="divMain" class ="main" ><br><br> </div><br> </form><br></ 본문><br></html><br> </div>