当前位置: 代码迷 >> JavaScript >> 登录惯用的js
  详细解决方案

登录惯用的js

热度:50   发布时间:2012-07-03 13:37:42.0
登录常用的js
        <input type="text" class="inputstyle" maxlength="50" autocomplete="off" 
            value="请输入用户名"  
            onfocus="if(this.value=='请输入用户名') this.value='';
            this.className='inputstylefocus';return true;"
            onblur="if(this.value=='') this.value='请输入用户名';
            this.className='inputstyle';return true;">
            
        <input type="password" class="inputstyle" maxlength="20" 
            value="+_-_-_+"  
            onfocus="if(this.value=='+_-_-_+') this.value='';
            this.className='inputstylefocus';return true;"
            onblur="if(this.value=='') this.value='+_-_-_+';
            this.className='inputstyle';return true;">
  相关解决方案