<style>
input{border:#5656561pxsolid;height:20px;line-height:19px;vertical-align:middle;font-size:12px;color:#565656;}
</style>
<script>
functionfEvent(sType,oInput){
switch(sType){
case"focus":
oInput.isfocus=true;
case"mouseover":
oInput.style.borderColor='#f00';
break;
case"blur":
oInput.isfocus=false;
case"mouseout":
if(!oInput.isfocus){
oInput.style.borderColor='#565656';
}
break;
}
}
</script>
<formname="form1"method="post"action="search.asp"target="_blank">
搜索:<br/>
名称:
<inputtype="text"name="name"onmouseover="fEvent('mouseover',this)"onfocus="fEvent('focus',this)"onblur="fEvent('blur',this)"onmouseout="fEvent('mouseout',this)"><br/>
编号:
<inputtype="text"name="num"onmouseover="fEvent('mouseover',this)"onfocus="fEvent('focus',this)"onblur="fEvent('blur',this)"onmouseout="fEvent('mouseout',this)"><br/>
<br/>
input{border:#5656561pxsolid;height:20px;line-height:19px;vertical-align:middle;font-size:12px;color:#565656;}
</style>
<script>
functionfEvent(sType,oInput){
switch(sType){
case"focus":
oInput.isfocus=true;
case"mouseover":
oInput.style.borderColor='#f00';
break;
case"blur":
oInput.isfocus=false;
case"mouseout":
if(!oInput.isfocus){
oInput.style.borderColor='#565656';
}
break;
}
}
</script>
<formname="form1"method="post"action="search.asp"target="_blank">
搜索:<br/>
名称:
<inputtype="text"name="name"onmouseover="fEvent('mouseover',this)"onfocus="fEvent('focus',this)"onblur="fEvent('blur',this)"onmouseout="fEvent('mouseout',this)"><br/>
编号:
<inputtype="text"name="num"onmouseover="fEvent('mouseover',this)"onfocus="fEvent('focus',this)"onblur="fEvent('blur',this)"onmouseout="fEvent('mouseout',this)"><br/>
<br/>