<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script type="text/javascript">
function f_submit() {
b1.disabled = "true";
}</script>
<body>
<form action="SaveOrderBySearchAir.aspx" method="post" name="Orderbyter" id="Orderbyter" onsubmit="return f_submit();">
<input type="submit" class="sub" value="button" id="b1"/>
</form></body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script type="text/javascript">
function f_submit() {
b1.disabled = "true";
}</script>
<body>
<form action="SaveOrderBySearchAir.aspx" method="post" name="Orderbyter" id="Orderbyter" onsubmit="return f_submit();">
<input type="submit" class="sub" value="button" id="b1"/>
</form></body>
</html>
然后settimeout 十秒后再把disabled属性去掉
function change(a){
a.disabled=true;
time();
}
function time(){
window.setTimeout("stops()",10000);
}
function stops(){
document.getElementById("test").disabled=false;
}
</script>
</head><body>
<input id="test" type="button" value="button" onclick="change(this)">
这样试试