<!-- 代码片段A --> <!-- 倒计时跳转 --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <meta http-equiv='refresh' content='5;url=login.jsp'> <script type='text/javascript'> var i = 5; function getTime() { document.getElementById('num').innerHTML = "<font color='red'>" + i + "</font>"; i -= 1; var x = setTimeout('getTime()', 1000) if (i <= 0) { clearTimeout(x); } } window.onload = getTime; </script> <TITLE>登录失败页!</TITLE> </HEAD> <BODY> <div align="center"> <h2>登录失败,<%=mes %></h2> <h2> 注意!!页面将在<div id='num' style='display=inline;'>5</div>秒后跳转 </h2> </div> </BODY> </HTML>