<HTML>
<HEAD><TITLE>自動離開的視窗</TITLE><SCRIPT><!--var flyingwinvar popupwidth=200var popupheight=150var marginrightvar windowcentervar i_top=200var i_left=-popupwidth-50var step=40var timervar waitingtime=5000var pause=20function showWindow() {flyingwin = window.open("", "flyingwin", "toolbar=no,width="+popupwidth+",height="+popupheight+",top=100,left="+(-popupwidth)+"");flyingwin.document.open();flyingwin.document.write("<html><title>自動離開的視窗</title><body><p align=center>請不要關閉,馬上就離開:(</body></html>");flyingwin.document.close(); if (document.all) {marginright = screen.width+50}if (document.layers) {marginright = screen.width+50}windowcenter=Math.floor(marginright/2)-Math.floor(popupwidth/2)movewindow() }function movewindow() {if (i_left<=windowcenter) {flyingwin.moveTo(i_left,i_top)i_left+=steptimer= setTimeout("movewindow()",pause)}else {clearTimeout(timer)timer= setTimeout("movewindow2()",waitingtime)}}function movewindow2() {if (i_left<=marginright) {flyingwin.moveTo(i_left,i_top)i_left+=steptimer= setTimeout("movewindow2()",pause)}else {clearTimeout(timer)flyingwin.close()}}// --></SCRIPT></HEAD><BODY onload=showWindow()> </BODY></HTML></td> </tr></table>