106 lines
2.5 KiB
Smarty
106 lines
2.5 KiB
Smarty
|
|
<!--{include file='top.tpl'}-->
|
|||
|
|
<style>
|
|||
|
|
.nr_nr {line-height:18px;}
|
|||
|
|
.ban {float: left;width:50%}
|
|||
|
|
.title li {list-style: none;}
|
|||
|
|
</style>
|
|||
|
|
<div id=in style="padding-left:10px;">
|
|||
|
|
<div class="ban">
|
|||
|
|
<div id="zxsj"></div>
|
|||
|
|
<div id="zxnr"></div>
|
|||
|
|
<div id="def_hit"></div>
|
|||
|
|
</div>
|
|||
|
|
<div class="ban">
|
|||
|
|
<div class="title" id="title"></div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<script>
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
var conf = [['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD>±<EFBFBD><C2B1><EFBFBD>','a',6],
|
|||
|
|
['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','b',1],
|
|||
|
|
['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ỷ<EFBFBD>ַ<EFBFBD>','c',1]];
|
|||
|
|
var miao = 100;//<2F><><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF>ִ<EFBFBD><D6B4>
|
|||
|
|
var gg = 30;//<2F><>ʾ<EFBFBD><CABE><EFBFBD>ٸ<EFBFBD><D9B8><EFBFBD>־
|
|||
|
|
var def = 0;
|
|||
|
|
var load_def = 0;
|
|||
|
|
var shuaxin = wsx = 300;//<2F><>ˢ<EFBFBD><CBA2>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>
|
|||
|
|
var wh;
|
|||
|
|
|
|||
|
|
function getNowFormatDate() {
|
|||
|
|
var date = new Date();
|
|||
|
|
var seperator1 = "-";
|
|||
|
|
var seperator2 = ":";
|
|||
|
|
var month = date.getMonth() + 1;
|
|||
|
|
var strDate = date.getDate();
|
|||
|
|
if (month >= 1 && month <= 9) {
|
|||
|
|
month = "0" + month;
|
|||
|
|
}
|
|||
|
|
if (strDate >= 0 && strDate <= 9) {
|
|||
|
|
strDate = "0" + strDate;
|
|||
|
|
}
|
|||
|
|
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
|||
|
|
+ " " + date.getHours() + seperator2 + date.getMinutes()
|
|||
|
|
+ seperator2 + date.getSeconds();
|
|||
|
|
return currentdate;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function tit_plus(nr){
|
|||
|
|
$("#title").append("<li>"+nr+"</li>");
|
|||
|
|
var hit = $("#title li").length;
|
|||
|
|
if(hit > gg){
|
|||
|
|
$("#title li:first").remove();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
function load(){
|
|||
|
|
if(load_def >= conf[def][2]){
|
|||
|
|
load_def = 0;
|
|||
|
|
if(def >= parseInt(conf.length-1)){
|
|||
|
|
def = 0;
|
|||
|
|
}else{
|
|||
|
|
def++;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
time_sx(def);//<2F><>ˢ<EFBFBD><CBA2>
|
|||
|
|
//$("#zxsj").html("<font color=red>"+conf[def][0]+"<br>ִ<><D6B4><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD>Ժ<EFBFBD>...</font>");
|
|||
|
|
$.get("weihu-"+conf[def][1]+".php",{js:'js'}, function(result){
|
|||
|
|
$("#zxnr").html(result);
|
|||
|
|
var zxm = shuaxin-wsx;
|
|||
|
|
tit_plus(getNowFormatDate()+" "+conf[def][0]+"(ִ<><D6B4>"+zxm+"<22><>)");
|
|||
|
|
load_def++;
|
|||
|
|
times();
|
|||
|
|
wsx = shuaxin;
|
|||
|
|
clearTimeout(wh);
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
var wait = miao;
|
|||
|
|
function times(){
|
|||
|
|
if (wait == 0) {
|
|||
|
|
load();
|
|||
|
|
wait = miao;
|
|||
|
|
} else {
|
|||
|
|
wait--;
|
|||
|
|
$("#zxsj").html(" (" + wait + ") <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>");
|
|||
|
|
setTimeout(function(){
|
|||
|
|
times();
|
|||
|
|
},1000);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
times();
|
|||
|
|
//<2F><>ˢ<EFBFBD><CBA2>
|
|||
|
|
function time_sx(def){
|
|||
|
|
wsx--;
|
|||
|
|
if (wsx == 0) {
|
|||
|
|
load();
|
|||
|
|
wsx = shuaxin;
|
|||
|
|
} else {
|
|||
|
|
$("#zxsj").html("<font color=red>"+conf[def][0]+"<br>ִ<><D6B4><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD>Ժ<EFBFBD>...<br>(" + wsx + ") <20><>ˢ<EFBFBD><CBA2></font>");
|
|||
|
|
wh = setTimeout(function(){
|
|||
|
|
time_sx(def);
|
|||
|
|
},1000);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
</script>
|
|||
|
|
<!--{include file='bottom.tpl'}-->
|
|||
|
|
</body>
|
|||
|
|
</html>
|