<html> |
<head><title></title></head> |
<body> |
<input type= "text" name= "username" value= "请输入用户名" |
onfocus=" if ( this .value==defaultValue) |
{ this .value= '' ; this .type= 'text' ;}" |
onblur=" if (!value) |
{value=defaultValue; this .type= 'text' ;}" /> |
<input type= "text" name= "password" value= "请输入密码" |
onfocus=" if ( this .value==defaultValue) |
{ this .value= '' ; this .type= 'password' ;}" |
onblur=" if (!value) |
{value=defaultValue; this .type= 'text' ;}" /> |
</body> |
</html> |