<input value="Please input someting" onfocus="if(this.value=='Please input someting') this.value='';">

解决方案 »

  1.   

    这个非常简单 , 就是当mouseover时,就把text的value置为空就可以了
    如下:
    <input type = "text" value = "有字" onmouseover = "this.value = ''" >
      

  2.   

    <asp:textbox runat=server id=tbTxt text="meizz"></asp:textbox>后台(C#):
    tbTxt.Attributes["onmouseover"] = "focus(); value='';";
      

  3.   

    <asp:textbox runat=server id=tbTxt text="meizz"></asp:textbox>后台(C#):
    tbTxt.Attributes["onmouseover"] = "focus(); value='';";
      

  4.   

    很简单
    <input type="text" value="fd" onfocus="javascript:this.value='';">
      

  5.   

    <input type="text" value="fd" onfocus="javascript:this.value='';">
      

  6.   

    fokker说得好<input value="Please input someting" onfocus="if(this.value=='Please input someting') this.value='';">
      

  7.   

    直接这样就可以了啊<input value="Please input someting" onfocus="javascript:this.value='';">
      

  8.   

    <html>
    <head>
    <title>kevin test</title>
    </head>
    <body>
    <textarea cols=20 rows=6 onmouseover="this.innerHTML=''">kkkk</textarea>
    </body>
    </html>