<script>
function show() {
var tomDate= new Date("2023/5/1");
var tomtime= tomDate.getTime();
var nowDate= new Date();
var nowtime= nowDate.getTime();
var time=(tomtime-nowtime)/1000;
var day= parseInt(time/(60*60*24));
var hour=parseInt((time%(3600*24))/3600);
var min=Math.floor((time/60)%60);
var sec=Math.floor (time%60);
var result='距离五一还有:'+day+'天'+hour+'时'+min+'分'+sec+'秒';
document.getElementById('show').innerHTML=result;
window.setTimeout('show()',1000)
}
window.onload = show
</script>