<div class="codetitle"> <span><a style="CURSOR: pointer" data="23347" class="copybut" id="copybut23347" onclick="doCopy('code23347')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code23347"> <br><!DOCTYPE html> <br><html> <br><머리> <br><제목> 제 이름은 리안 릴리입니다</title> <br><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <br><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <br><script type="text/javascript"> <br><br>var times = 0 <br>function show(obj) { <br>$("#btn_" obj).attr("disabled","disabled");//设置button불용 <br>번 ; <br>if(times == 2){ <br>alert(obj); <br>회 = 0; <br>$("#btn_" obj).removeAttr("disabled"); <br>반품 ; <br>} <br>//$("#frm" obj).submit(); <br>setTimeout("show(" obj ")" , 3000); <br>} <br></script> <br></head> <br><br><본문> <br><form action ='post.php' method="post" name="frm1" id="frm1"> <br><input type="button" name="btn_1" id="btn_1" value="提交1" onclick="show(1)" /> <br></form> <br><br><form action ='post.php' method="post" name="frm2" id="frm2"> <br><input type="button" name="btn_2" id="btn_2" value="提交2" onclick="show(2)"/> <br></form> <br></body> <br></html> <br> </div>