CSDN不能发帖了?

解决方案 »

  1.   

    ok
    打了半天的字,结果来个服务器无法响应我的请求,所以字白打。
    现在长话短说
    对Text文本框,当其值重set的时候,光标会自动移到前面去
    现在我要实现鼠标点到哪光标就在哪<html>
    <script>
    function change(){
    document.getElementById("t1").value = "abcdefghijklmnopqrstuvwsyz";
    document.getElementById("t2").value = "abcdefghijklmnopqrstuvwsyz";
    }
    </script>
    <body>
    <input id="t1" onblur="change();"/>
    <input id="t2" onblur="change();"/>
    </body>
    </htmL>
      

  2.   

    <!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>
        <title>无标题页</title>
    <script type="text/javascript">
       _blur = function(obj)
       {
          obj.focus();
       }
    </script>
    </head>
    <body>
    <input id="t1"  onmouseover="_blur(this)"/>
    <input id="t2" onmouseover="_blur(this)"/>
    </body>
    </html>
      

  3.   

    focus()这个方法不错
    但是现有系统会为了某些目的在onblur的事件中把onchange的事物清掉。
    请问还有其他的解决方案吗
      

  4.   

    用onmouseover 然后focus这种方法效果实在不怎么好