谁能帮我改改,这个是倒计时提交表单的,也就是五秒后自-动--提交,我想改成定时的,比如,想让它在12:00,8:00提交。
<script>
setInterval("document.all.form1.submit()",50000) ;
</script>
帮忙写全了,好吗?我不会
最后留下你的支付宝,我打钱给你买烟!
------解决方案--------------------
setInterval(function(){
var date = new Date();
var hour = date.getHours();
var minute = date.getMinutes();
if ( hour < 10 )
hour = "0"+hour;
if ( minute < 10 )
minute = "0"+minute;
if( hour + ":" + minute == "8:00" || hour + ":" + minute == "12:00" )
{
document.all.form1.submit();
}
},1000)