注册 登录
编程论坛 ASP技术论坛

代码问题

TZTJ 发布于 2010-07-14 17:11, 463 次点击
请教各位高手,以下代码表示什么意思呢?
<input type="text" name="answer" size="20" value="<%=answer%>"
onKeyUp="this.value.toUpperCase()" onBlur="this.className='inputnormal'
" onFocus="this.className='inputedit';this.select()" class="inputnormal
">
3 回复
#2
yms1232010-07-15 10:05
<input type="text" name="answer" size="20" value="<%=answer%>"
onKeyUp="this.value.toUpperCase()" onBlur="this.className='inputnormal'
" onFocus="this.className='inputedit';this.select()" class="inputnormal">
this.value.toUpperCase();全部转换为大写在文本框上按键盘时执行
this.className改变class样式,
this.select();选中文本框,同this.focus();应该是差不多。
#3
谁与争疯2010-07-15 10:07
鼠标事件。
#4
TZTJ2010-07-15 16:02
非常感谢!但"inputedit"与 "inputnormal"分别表示什么呢?
1