<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> <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 time = 0 <br>function show(obj) { <br>$("#btn_" obj).attr("disabled","disabled");//设置ボタン使用不可 <br>回; <br>if(times == 2){ <br>alert(obj); <br>回 = 0; <br>$("#btn_" obj).removeAttr("無効"); <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>