<Style>
<! --
. Sffocus {
Border-Right: #1d95c7 1px solid; border-top: #1d95c7 1px solid; Background: # eef2ff; border-left: #1d95c7 1px solid; border-bottom: #1d95c7 1px solid
}
Textarea: Unknown {
Border-Right: #1d95c7 1px solid; border-top: #1d95c7 1px solid; Background: # eef2ff; border-left: #1d95c7 1px solid; border-bottom: #1d95c7 1px solid
}
Input: Unknown {
Border-Right: #1d95c7 1px solid; border-top: #1d95c7 1px solid; Background: # eef2ff; border-left: #1d95c7 1px solid; border-bottom: #1d95c7 1px solid
}
Input {
Border-Right: #999 1px solid; border-top: #999 1px solid; margin: 0px; border-left: #999 1px solid; border-bottom: #999 1px solid
}
Textarea {
Border-Right: #999 1px solid; border-top: #999 1px solid; margin: 0px; border-left: #999 1px solid; border-bottom: #999 1px solid
}
-->
</Style>
<SCRIPT>
<! --
Function suckerfish (type, Tag, parentid)
{
If (window. attachevent)
{
Window. attachevent ("onLoad", function ()
{
VaR sfels = (parentid = NULL )? Document. getelementsbytagname (TAG): Document. getelementbyid (parentid). getelementsbytagname (TAG );
Type (sfels );
});
}
}
Sffocus = function (sfels ){
For (VAR I = 0; I <sfels. length; I ++)
{
Sfels [I]. onfocus = function ()
{
This. classname + = "sffocus ";
}
Sfels [I]. onblur = function ()
{
This. classname = This. classname. Replace (New Regexp ("sffocus \ B "),"");
}
}
}
Suckerfish (sffocus, "input ");
Suckerfish (sffocus, "textarea ");
// -->
</SCRIPT>