<html>
<body>
<script type="text/javascript">
 function ajaxFunction()
{
};
function callBack1(rlt)

   document.title =rlt;
 
}
var t;
function astart()
{
  var d=new Date();
 
         //document.title =d;
//AjaxFunc();
callBack1(d);
t = settimeout(astart(),9000);
}</script><form name="myForm">
我: <input type="text" name="ii" onkeyup="ajaxFunction();" />
ni: <input type="text" name="uu" onkeypress="astart()"/>
</form></body>
</html>感觉没错啊

解决方案 »

  1.   


    <html>
    <head>
    <title></title>
    </head>
    <body>
    <script type="text/javascript">
     function ajaxFunction()
    {
    };
    function callBack1(rlt)

       document.title = rlt;
     
    }
    var t;
    function astart()
    {
      var d=new Date();
     
             //document.title =d;
        //AjaxFunc();
        callBack1(d);
        t = setTimeout(astart,9000);
    }</script><form name="myForm">
    我: <input type="text" name="ii" onkeyup="ajaxFunction();" />
    ni: <input type="text" name="uu" onkeypress="astart()"/>
    </form></body>
    </html>
      

  2.   

    还是错误:
    行 19
    字符:2
    错误:缺少对象
    代码:0
    url:XXXX
      

  3.   

    clearTimeout(t);
    t=setTimeout(function(){astart();},9000);
      

  4.   

    恩   还和  大小写 有关系;好像 javascript 对大小写不敏感的嘛;;;哎 把 delphi的不好习惯带过来了.