页面倒计时返回
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | <! DOCTYPE > < html > < head > < meta http-equiv="Content-Type" content="text/html;charset=utf-8"> < meta http-equiv="X-UA-Compatible" content="IE=7" /> < title >我的秀,我操作</ title > < style type="text/css" media="screen"> * { margin: 0; padding: 0; font-family: arial, sans-serif; font-size: 14px; } body, html { height: 100%; } body { background: #e9eaef; } .wrapper { margin: 0 auto; /* 背景图片 */ background: #fff url(images/bg.png) top center; width: 587px; height: 196px; padding: 80px 0 0 80px; top: 50%; margin-top: -150px; position: relative; } h3 { font-weight: 700; font-size: 16px; } .tm { padding-top: 24px; } .tm span { color: #e10602; padding: 0 5px; font-weight: 700; } .btn { padding-top: 14px; } .btn a { display: block; width: 150px; height: 0; overflow: hidden; padding-top: 30px; /* 前往百度首页按钮 */ background: #00f url(images/go.png) 0 0; color: #fff; } </ style > </ head > < body > < div class="wrapper"> < h3 >该功能已关闭,即将跳转到百度首页。</ h3 > < p class="tm">本页< span id="time">5</ span >秒内自动跳转...</ p > < p class="btn">< a id="Btn" href="http://www.baidu.com">前往百度首页</ a ></ p > </ div > < script type="text/javascript"> function sendStats(url) { var n = "log_" + (new Date()).getTime(); var c = window[n] = new Image(); c.onload = (c.onerror = function() { window[n] = null; }); c.src = 'http://www.baidu.com' + url; c = null; } var time = document.getElementById('time'); var btn = document.getElementById('Btn'); function count() { if (+time.innerHTML > 0) { time.innerHTML = time.innerHTML - 1; } else { sendStats('gotobaidu'); location.href = btn.href; } } setInterval(count, 1000); btn.onclick = function() { sendStats('gotobaidu'); }; </ script > </ body > </ html > |
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>我的秀,我操作</title>
<style type="text/css" media="screen">
* {
margin: 0;
padding: 0;
font-family: arial, sans-serif;
font-size: 14px;
}
body,
html {
height: 100%;
}
body {
background: #e9eaef;
}
.wrapper {
margin: 0 auto;
/* 背景图片 */
background: #fff url(images/bg.png) top center;
width: 587px;
height: 196px;
padding: 80px 0 0 80px;
top: 50%;
margin-top: -150px;
position: relative;
}
h3 {
font-weight: 700;
font-size: 16px;
}
.tm {
padding-top: 24px;
}
.tm span {
color: #e10602;
padding: 0 5px;
font-weight: 700;
}
.btn {
padding-top: 14px;
}
.btn a {
display: block;
width: 150px;
height: 0;
overflow: hidden;
padding-top: 30px;
/* 前往百度首页按钮 */
background: #00f url(images/go.png) 0 0;
color: #fff;
}
</style>
</head>
<body>
<div class="wrapper">
<h3>该功能已关闭,即将跳转到百度首页。</h3>
<p class="tm">本页<span id="time">5</span>秒内自动跳转...</p>
<p class="btn"><a id="Btn" href="http://www.baidu.com">前往百度首页</a></p>
</div>
<script type="text/javascript">
function sendStats(url) {
var n = "log_" + (new Date()).getTime();
var c = window[n] = new Image();
c.onload = (c.onerror = function() {
window[n] = null;
});
c.src = 'http://www.baidu.com' + url;
c = null;
}
var time = document.getElementById('time');
var btn = document.getElementById('Btn');
function count() {
if (+time.innerHTML > 0) {
time.innerHTML = time.innerHTML - 1;
} else {
sendStats('gotobaidu');
location.href = btn.href;
}
}
setInterval(count, 1000);
btn.onclick = function() {
sendStats('gotobaidu');
};
</script>
</body>
</html>
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET 9 new features-C#13新的锁类型和语义
· Linux系统下SQL Server数据库镜像配置全流程详解
· 现代计算机视觉入门之:什么是视频
· 你所不知道的 C/C++ 宏知识
· 聊一聊 操作系统蓝屏 c0000102 的故障分析
· 不到万不得已,千万不要去外包
· C# WebAPI 插件热插拔(持续更新中)
· .NET 9 new features-C#13新的锁类型和语义
· 会议真的有必要吗?我们产品开发9年了,但从来没开过会
· 《SpringBoot》EasyExcel实现百万数据的导入导出