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,计时计pdfcrowd源码
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>