1.php����ʱԴ��
php����ʱԴ��
这个东西只有用js来实现,倒p倒代码<script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript">
var intDiff = parseInt();//倒计时总秒数量
function timer(intDiff){
window.setInterval(function(){
var day=0,计时计旅馆网站源码
hour=0,
minute=0,
second=0;//时间默认值
if(intDiff > 0){
day = Math.floor(intDiff / ( * * ));
hour = Math.floor(intDiff / ( * )) - (day * );
minute = Math.floor(intDiff / ) - (day * * ) - (hour * );
second = Math.floor(intDiff) - (day * * * ) - (hour * * ) - (minute * );
}
if (minute <= 9) minute = '0' + minute;
if (second <= 9) second = '0' + second;
$('#day_show').html(day+"天");
$('#hour_show').html('<s id="h"></s>'+hour+'时');
$('#minute_show').html('<s></s>'+minute+'分');
$('#second_show').html('<s></s>'+second+'秒');
intDiff--;
}, );
}
$(function(){
timer(intDiff);
});
</script>
2024-11-23 08:29
2024-11-23 08:13
2024-11-23 08:07
2024-11-23 07:23
2024-11-23 07:12
2024-11-23 06:50
2024-11-23 06:24
2024-11-23 06:06