<input type=text onmouseover="Javascript:window.alert('hint');">

解决方案 »

  1.   

    ToolTip可以做到
    to  al_lew:alert是警告而非提示.
      

  2.   

    <div id="tooltip" style="display:none"/>
    <input type=text onmouseover="setToolTip()">function setToolTip()
    {
    tootip.style.display=black;
    tootip.style.left=window.event.clientX;
    tootip.style.top=window.event.clientY;
    tooptip.innerHtml="msg";
    //set width and height
    }大至是这样,好久不用了,可能语句会有问题.
      

  3.   

    怎么老是提示缺少对象啊?学习一下,请指点!
    <INPUT type="text" name="o1" onmouseover="CreateMyToolTip()"> 
    function CreateMyToolTip(){
    ToolTip toolTip1 = new ToolTip(this.components);
    toolTip1.AutoPopDelay = 5000;
             toolTip1.InitialDelay = 1000;
             toolTip1.ReshowDelay = 500;
    toolTip1.ShowAlways = true;
    toolTip1.SetToolTip(this.o1, "1");
    }