単純にJavaScriptを使っている。
[sourcecode language=”html”]
<dl>
<dt><label for="name" class="name">name:</label></dt>
<dd>
<input type="text" name="name" id="name" size="45" class="no_width" 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" class="mail">mail:</label></dt>
<dd>
<input type="text" name="mail" id="mail" size="45" class="no_width" 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" class="mess">message:</label></dt>
<dd>
<textarea name="mess" id="mess" rows="5" cols="45" class="txtarea" onfocus=’this.style.backgroundColor="#000"’ onblur=’this.style.backgroundColor="#000"’><?=form_set(‘message’,’textarea’,’mess’,”,’1′,’0′,$check_mode)?></textarea>
</dd>
</dl>
[/sourcecode]