|
|
现有一个文本框假如是<Input type="text" name="t1" size="20">
我的问题是:
文本框text获得焦点时(onFocus)使文本框内的信息变为红色(red),当文本框text失去焦点时(onBlur)使文本框内的信息变为蓝色(blue)
请各位朋友帮个忙.小弟先行谢过了
<Input type="text" name="t1" size="20" onFocus="this.style.color='red'" onBlur="this.style.color='blue'"> |
|