事件处理函数OnEnter OnExit 使用一例
2007-11-27 16:12:01 来源:WEB开发网只留一个输入框空缺
<html>
<head>
<meta http-equiv=Content-Type content=text/html; charset=gb2312>
<title>OnEnter OnExit 使用一例</title>
<STYLE>
.in{
BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: black 1px solid; COLOR: #000000; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px; BACKGROUND-COLOR: #e4e4e4;
}
</STYLE>
<SCRIPT language=JavaScript>
<!--
function OnEnter( field ) { if( field.value == field.defaultValue ) { field.value = ; } }
function OnExit( field ) { if( field.value == ) { field.value = field.defaultValue; } }
-->
</SCRIPT>
</head>
<body>
<TABLE>
<TD>
<INPUT onblur=OnExit(this) class=in onfocus=OnEnter(this) value=Express>
<INPUT onblur=OnExit(this) class=in onfocus=OnEnter(this) value=Express>
<INPUT onblur=OnExit(this) class=in onfocus=OnEnter(this) value=Express>
<INPUT onblur=OnExit(this) class=in onfocus=OnEnter(this) value=Express>
<INPUT onblur=OnExit(this) class=in onfocus=OnEnter(this) value=Express>
<INPUT onblur=OnExit(this) class=in onfocus=OnEnter(this) value=Express>
<INPUT onblur=OnExit(this) class=in onfocus=OnEnter(this) value=Express>
<INPUT onblur=OnExit(this) class=in onfocus=OnEnter(this) value=Express>
<INPUT onblur=OnExit(this) class=in onfocus=OnEnter(this) value=Express>
<INPUT onblur=OnExit(this) class=in onfocus=OnEnter(this) value=Express>
</TD>
</TABLE>
</body>
</html>
- ››处理报错:java/lang/NoClassDefFoundError: java...
- ››函数式编程(javascirpt)
- ››函数式JavaScript编程指南
- ››处理反馈问题时的一点想法
- ››处理SQL Server表的数据插入到错误列中
- ››处理SSIS 2008中的变更数据捕获
- ››处理器发展分析:超过16个内核毫无意义
- ››处理word长文档-使用主控文档
- ››处理Oracle中的不可见字符
- ››处理Asp.net Ajax框架12029,12007错误
- ››函数调用,__stdcall,__cdecl,__fastcall,thiscall...
- ››函数指针与软件设计
赞助商链接