input onfocus onblur

 

<input type="text" style="color:#999" value="账户" onfocus='if(this.value=="账户"){this.value="";this.style.color="";}' onblur='if(this.value==""){this.value="账户"; this.style.color="#999";}' />

 

posted @ 2015-02-27 11:45  cssfirefly  阅读(321)  评论(0编辑  收藏  举报
foot