35、到时时再弹出窗口

35、到时时再弹出窗口

<html>

<head>

<title>bomb</title>

<script language="JavaScript">

var intLeft = 15;

 

function leavePage() {

if (0 == intLeft)

alert('嘻!!!哈哈!开个玩笑!7stk.com ')

else {

 

intLeft -= 1;

document.all.countdown.innerText = intLeft + " ";

setTimeout("leavePage()", 1000);

}

}

</script>

</head>

<body bgcolor=yellow leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="setTimeout('leavePage()', 1000)">

 

 

 

<table width="340" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="70">  </td>

<td width="258"> </td>

</tr>

<tr valign="middle" align="center"

>

<td colspan="2" height="138" class="9P">

<p>大家快跑!!要爆炸了!!还有<span id="countdown"> <!-- Output initial amount of time. -->

<script language="JavaScript">

document.write(intLeft);

 

</script>

</span> 秒就要爆炸了!!快!!</p>

</td>

</tr>

</table>

</body>

</html>

 

 

Write a comment

Comments: 0