<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{ 背景顏色:銀色;寬度:200px;高度:100px;左邊距:40%;上邊距:200px;文字對齊:center;}<BR> </style> <br> <script src="js/ui/jquery-1.7.1%20.min.js" type="text/javascript"> script><BR> <script language="javascript" type="text/javascript"><BR> Timevar n = 3;<> Timevar n = 3;<> {<BR> n--;<BR> $( '#divmain')。 html(n'秒後關閉視窗');<BR>if(n == 0)<BR> window.close();<BR>elly<BR><BR> settimeTimeout('showtime('showtime()' ' , 1000);<BR> }<BR> </script><br><br><br> "><br> <div id="divMain" class="main"> <br><br> </div> <br> <br>正文><br> <br>正文></div>