tznktg 发表于 2007-10-6 10:47:51

onFocus和onBlur问题

现有一个文本框假如是<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'">
页: [1]
查看完整版本: onFocus和onBlur问题

网站推广