这个程序运行不成功  但是不知道哪里错了 如果不传参数,直接写成这样就是对的if((event.keyCode==13 && event.ctrlKey ) ajax())   js里面的name shijian都去掉还有一个问题就是
我想用<textarea >来做输出框, 但是不希望输出框别编辑(也就是不希望光标放到上面去)不知道怎么解决了 快下班了  请大峡指教下!

解决方案 »

  1.   

     <textarea name="Content" style="display:none"> <%=Server.HTMLEncode(content)%> </textarea> 
                          <iframe ID="editor" src="../editor.asp" frameborder=1 scrolling=no width="620" height="405"> </iframe> 
    这样的效果?
      

  2.   

    不是啊
    一个最简单输出框
    就是一般的效果
    关键是  内容不能被编辑
    <textarea disabled="disabled">就可以不能编辑   但是固定了行数.希望能做到有滚动条且不能被编辑的
      

  3.   

    这样就可以吧
    <textarea style="overflow-y:scroll;height:70px;width:400px;">
    This is the testw
    This is the test
    This is the test
    This is the test
    This is the test
    This is the test
    This is the test
    This is the test
    This is the test
    </textarea>
      

  4.   

    Sorry,6楼忘了readonly
    <textarea style="overflow-y:scroll;height:70px;width:400px;" readonly>
    This is the testw
    This is the test
    This is the test
    This is the test
    This is the test
    This is the test
    This is the test
    This is the test
    This is the test
    </textarea>
      

  5.   

    <textarea rows="4" readonly="true">
      

  6.   

    不能编辑你不能使用disabled="disabled"这个肯定不行的,要用可读得