フォーカスで色が変わるフォーム

javascriptでCSS切り替えてるだけ
 

[sourcecode language="java"]<dl>
 <dt><label for="name">name:</label></dt>
 <dd>
 <input type="text" name="name" id="name"  size="45" maxlength="100" value="<?=form_set('name','text','name','','1','0',$check_mode)?>" onfocus='this.style.backgroundColor="#000"' onblur='this.style.backgroundColor="#000"' />
 </dd>
 </dl>
 <dl>
 <dt><label for="mail">mail:</label></dt>
 <dd>
 <input type="text" name="mail" id="mail"  size="45" maxlength="150" style="ime-mode: disabled;" value="<?=form_set('mail','text','mail','','1','0',$check_mode)?>" onfocus='this.style.backgroundColor="#000"' onblur='this.style.backgroundColor="#000"' />
 </dd>
 </dl>
 <dl>
 <dt><label for="mess">message:</label></dt>
 <dd>
 <textarea name="mess" id="mess" rows="5" cols="45" onfocus='this.style.backgroundColor="#000"' onblur='this.style.backgroundColor="#000"'><?=form_set('message','textarea','mess','','1','0',$check_mode)?></textarea>
 </dd>
 </dl> [/sourcecode]