只留一个输入框空缺
<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>