用javascript好了
<input type=button onclick="javascript:settimeout('document.form1.textbox.value=\"奔跑\:',10000);"
差不多这样,没有验证正确

解决方案 »

  1.   

    ASP.NET的Timer组件,是在服务器上运行的
    在客户端页面上,还是用javascript来实现
      

  2.   

    <HTML>
    <BODY>
    <INPUT type=button onclick="computertime()" value="同意 (10 秒后继续)" name=agreeb>
    <SCRIPT language=javascript>
    <!--
    var secs = 10;
    function computertime(num)
    {
    num=secs;
    document.all('agreeb').disabled=true;
    for(i=1;i<=secs;i++) {
     window.setTimeout("update(" + i + ")", i * 1000);
    }
    }
    function update(num) {
     if(num == secs) {
     document.all('agreeb').value =" 同意";
     document.all('agreeb').disabled=false;
     document.all('textfield').value='时间到了!'
     }
    else {
     printnr = secs-num;
     document.all('agreeb').value = "同意 (" + printnr +" 秒后继续)";
     }
    }//-->
    </SCRIPT>
    <input type="text" name="textfield">
    </BODY></HTML>
      

  3.   

    callid=settimeout("fun()",1000)
    cleartimeout(callid)
    callid=setinterval("fun()",1000)
    clearinterval callid