<div class="bg-notfound">
<div class="nf-top">
<img src="__PUBLIC__/images/404/404.png" alt="">
</div>
<div class="nf-txt">
<p>即将离开本页,<span id="second">5</span>秒后自动返回上一页</p>
</div>
<div class="nf-bottom">
<a href="javascript:;" class="btn-nf btn-back" onclick="history.go(-1)">立即返回</a>
<a href="/" class="btn-nf btn-go">回到首页</a>
</div>
</div>
$(function(){
setTimeout('jumpGo()',1000);
});
function jumpGo(){
var second = $("#second").text();
$("#second").text(--sec);
if(second>0){
setTimeout('jumpGo()',1000);
} else{
window.history.go(-1);
}
}