設(shè)置搜索框的默認(rèn)文字當(dāng)鼠標(biāo)單擊時(shí)該默認(rèn)文字消失

字號(hào):


    代碼如下:
    <input type=text id=kword name=kword value=按項(xiàng)目名稱搜索... onfocus=if(this.value=='按項(xiàng)目名稱搜索...')this.value=''; onblur=if(this.value=='')this.value='按項(xiàng)目名稱搜索...'; class=smallinput style=color:#a0a0a0;width:145px;>