应该是onhover="this.title=this.value"吧!

解决方案 »

  1.   


    <!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><body>
    <input name="t1" type="text" id="t1" title=""> <script type="text/javascript">
    var t = document.getElementById('t1');
    t.onkeyup = function(){
    t.title = t.value;
    document.getElementById('log').innerHTML = t.title
    }</script>
    <br />
    input 的title:
    <span id="log"></span>
    </body>
    </html>
      

  2.   

    可能是我的表述有问题的了
    <input name="t1" type="text" id="t1" title="这里要怎么写,让这个title鼠标放在上面只要显示出来就可以了"> 
      

  3.   

    <input name="t1" type="text" id="t1" title="这里要怎么写,让这个title鼠标放在上面只要显示出来就可以了"
    onmouseover="this.title=this.value" onmouseout="this.title=''" 
    /> 
      

  4.   

    5楼的谢谢了,我这里的主要意思是这样子的
    因为这个输入框的size很小,显示的不全,所以需要鼠标放在上面显示出里面的内容,最好能用title这样子显示。
      

  5.   

    用 onkeydown 或者onpropertychange
      

  6.   


    <!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><body>
    <input name="t1" type="text" id="t1" title="" size=2> <script type="text/javascript">
    var t = document.getElementById('t1');
    t.onmouseover = function(){
    t.title = t.value;
    }</script></body>
    </html>
      

  7.   

    如果title的内容是“具222222222222222222222222222222222222222222222222222222222222222222222”
    这样的混合文本时能正确显示么?不能正确显示的话怎么解决?