如题.
想要的效果就是http://reg.163.com/reg/reg0_new.jsp
点击 textBox之后 旁边会有提示框

解决方案 »

  1.   

    设置 textbox 的title属性就行啦。
      

  2.   

    what?你看那个网易注册的那个了?
      

  3.   

    function show(obj){
            var od = document.getElementById('div1'), o = obj, x = 0, y = 0, h = obj.offsetHeight;
            while(o != null){
                x += o.offsetLeft;
                y += o.offsetTop;
                o = o.offsetParent;
            }
            od.style.left = x+'px';
            od.style.top = y+ h +'px';
            od.style.visibility = 'visible';
        }
        function hid(){
            document.getElementById('div1').style.visibility = 'hidden';
        }
    onfocus="show(this);" onblur="hid();"