JavaScript@Workshop 
HOME > DHTML サンプル集 > テキストボックス選択時に背景色を変える
テキストボックス選択時に背景色を変える

サンプルソース

<input type="text" value="テキスト1" onfocus="this.style.backgroundColor='#cccccc'" onblur="this.style.backgroundColor='#ffffff'">
<input type="text" value="テキスト2" onfocus="this.style.backgroundColor='#cccccc'" onblur="this.style.backgroundColor='#ffffff'">


サンプル

関連する内容



スポンサードリンク



Copyright (C) 2006-2008 JavaScript@Workshop All rights reserved.