减少Linux服务器过多的TIME_WAIT
2011-05-26 14:10
363 查看
Javascript5秒之后跳转到指定页面 [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Count</title> </head> <body> <div style="text-align: center " >Enter baidu in <span id="totalSecond" style="text-align: center ;font-family: GulimChe;font-size: 100px;">5 </span>seconds </div> <script language="javascript" type="text/javascript"> var second = document.getElementById('totalSecond').textContent; if (navigator.appName.indexOf("Explorer") > -1) { second = document.getElementById('totalSecond').innerText; } else { second = document.getElementById('totalSecond').textContent; } setInterval("redirect()", 1000); function redirect() { if (second < 0) { location.href = 'www.baidu.com'; //go to baidu } else { if (navigator.appName.indexOf("Explorer") > -1) { document.getElementById('totalSecond').innerText = second--; } else { document.getElementById('totalSecond').textContent = second--; } } } </script> </body> </html>
[/code]
本文出自 “BatterHome” 博客,请务必保留此出处http://batter.blog.51cto.com/3743692/807143
相关文章推荐
- 探讨如何减少Linux服务器TIME_WAIT过多的问题
- 探讨如何减少Linux服务器TIME_WAIT过多的问题
- 探讨如何减少Linux服务器TIME_WAIT过多的问题
- 减少Linux服务器TIME_WAIT过多问题
- 如何减少Linux服务器TIME_WAIT过多
- 探讨如何减少Linux服务器TIME_WAIT过多的问题
- 如何减少Linux服务器TIME_WAIT过多
- 减少Linux服务器过多的TIME_WAIT
- 如何减少Linux服务器TIME_WAIT过多的问题
- 减少linux服务器大量TIME_WAIT
- 减少linux服务器大量TIME_WAIT
- Linux服务器web相关内核参数注解及TIME_WAIT状态的连接过多解决办法
- Linux服务器web相关内核参数注解及TIME_WAIT状态的连接过多解决办法
- Linux服务器web相关内核参数注解及TIME_WAIT状态的连接过多解决办法
- 如何解决TIME_WAIT过多的解决办法(附Socket中的TIME_WAIT状态详解)
- 运维小记:TIME_WAIT过多的处理方法
- 减少Linux下Squid服务器的TIME_WAIT套接字数量
- 解决TIME_WAIT过多问题
- 在linux系统中处理TIME_WAIT连接过多
- apache服务器的fin_wait1过多time_wait过多问题解决