This example mainly studies two parameters, onblur and onFocus. Because these two parameters are rarely encountered before, Baidu immediately understood that onblur is an event triggered when the control loses focus, and onFocus is when it becomes the input focus. Triggered events, these two parameters can be combined with className to directly call the style sheet class name
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
.input1{
font-family: verdana;background-color: #EEEEEE;border-bottom: #FFFFFF 1px solid;border-left: #CCCCCC 1px solid;border-right: #FFFFFF 1px solid;border-top : #CCCCCC 1px solid;font-size: 12px;