asp 文本框! 变颜色

来源:百度知道 编辑:UC知道 时间:2024/05/13 11:03:54
当鼠标移动到文本框上的时候 ,文本框就会变成别的颜色!怎么做谁知道说一下啊!

这个应该用JS做吧..改变CSS样式..

<input type="text" name="form_1" size="20" onmouseover="this.style.background='yellow'" onmouseout="this.style.background='green'"">

<input name="Company_name" type="text" id="Company_name" size="40" maxlength="300" onmouseover="this.style.background='#FF66FF'" onmouseout="this.style.background='#CCFFCC'" style="background:#CCFFCC" />