JS input框动态效果_提示语的隐藏与出现,鼠标不在时出现提示语,鼠标消失时出现提示语。
<input type="text" οnblur="if(this.value == '') { this.style.color='#999'; this.value='提示用语!'}" οnfοcus="if(this.value == '提示用语!') {this.style.color='#333'; this.value=''}" style="color: rgb(153, 153, 153);" value="提示用语!" name="query">