`
coolsooner
  • 浏览: 1307586 次
文章分类
社区版块
存档分类
最新评论

html代码一小段-------鼠标放上选中,鼠标点击,文字消失,鼠标离开文字又有了

 
阅读更多
<input name="key" type="text" id="key" value="关键词" size="30"
onmouseover=this.focus();this.select();
onclick="if(value==defaultValue){value='';this.style.color='#000'}"
onBlur="if(!value){value=defaultValue;this.style.color='#999'}" style="color:#999" />
</body>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics