延时置灰3秒


方法一:
<html-el:form action="/ag/queryATMTransfer.do" method="post"> //表单
<div class="normalbutton flr">
<div class="normalbuttonin" id="btn" onclick="confirmtodo();">撤销</div>
</div>
</html-el:form>

<script type="text/javascript">
function confirmtodo(){
var input = document.getElementById('btn'); //锁定按钮
input.disabled="true"; //锁定按钮
input.style.color="gray";
setTimeout("changeChkBtn();", 3000); //设置为3秒放开

AGTranBean.action="cancelATMTransfer.do";
AGTranBean.submit();
}

//改变按钮状态
function changeChkBtn() {
document.getElementById('btn').disabled = "";
}
</script>

方法二:
<html-el:form action="/ag/queryEbankCustInfo.do" method="post"> //表单
<tr>
<td>
<c:if test="${result_list.flag_hj eq null}">
<input type="button" onclick="inputPwd('${result_list.account}')" id="input${result_list.account}" value="取交易密码"/>
</c:if>
</td>
</tr>
</html-el:form>

<script type="text/javascript">

function inputPwd(obj){
parent.doTpin(11);
flag="true";
var input = document.getElementById(String("input"+obj));
check.style.display = "";
input.disabled="disabled"; //锁定按钮
setTimeout("changeChkBtn('input"+obj+"');", 3000); //设置为3秒放开
}

//改变按钮状态
function changeChkBtn(obj) {
document.getElementById(String(obj)).disabled = "";
}
</script>

posted @ 2019-12-04 22:34  RunningNeverStop  阅读(382)  评论(0编辑  收藏  举报