提交按钮触发的是delayShow()函数。
<script language=javascript>
function delayShow(){
sending.style.visibility= "visible ";
window.setTimeout( 'submitFunction(); ',5000);//5秒之后才提交
}
function submitFunction(){
document.form1.action= ".......... ";
document.form1.submit();
}
</script>
上面那样做其实是把提交的时候滞后5秒
<script language=javascript>
function delayShow(){
sending.style.visibility= "visible ";
window.setTimeout( 'submitFunction(); ',5000);//5秒之后才提交
}
function submitFunction(){
document.form1.action= ".......... ";
document.form1.submit();
}
</script>
上面那样做其实是把提交的时候滞后5秒