asp中 INPUT 怎么能让 框里显示一个默认值 切单击消失

来源:百度知道 编辑:UC知道 时间:2024/05/28 09:18:50
asp中 INPUT 怎么能让 框里显示一个默认值 切单击消失

参考资料:
<input type="text" name="UserName" value="用户名/电子邮件地址" onblur="if (this.value==''){ this.value='用户名/电子邮件地址';this.style.color='#999';}else{this.style.color='';}" onfocus="if (this.value=='用户名/电子邮件地址') {this.value='';this.style.color='';}" title="用户名/电子邮件地址" style="width:150px; color:#999" />