Posted in Javascript onJune 29, 2007
<div>
<label for="email">Email</label>
<input name="email" type="text" id="email" style="width:134px;" onfocus="if(this.value==Input your email)this.value=;"onblur="if(this.value==)this.value=Input your email;" value="Input your email" />
<label for="pwd">Password</label>
<input name="pwd" type="password" id="pwd" style="width:132px;" onfocus="if(this.value==inputpass)this.value=;"onblur="if(this.value==)this.value=inputpass;" value="inputpass" />
</div>
用javascript实现的激活输入框后隐藏初始内容
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@