rollover form and click changing background color question
Posted on 2005-04-21
say you have the following
<input name="formbox1" type="text" class="test" style="background-color:#b6c9ea" tabindex="2" onFocus="this.style.backgroundColor='#d4eefd';" onBlur="this.style.backgroundColor='#b6c9ea';" onMouseOver="this.style.backgroundColor='#d4eefd';" onMouseOut="this.style.backgroundColor='#b6c9ea';" size="20">
First how do i change the colors to background image loads so i can use the colors i want, secondly, if i want the user to be able to mouseover and have the color change, but click and have the mouseover color stay with that form ( without following the mouseover behavoiur again once i move the mouse off?) any suggestions would be great.
is there a way to do the mouseover and click attributes at the same time but obey the onclick once the mouse moves off?- this might be a ridiculous question, i just thought it would be cool to be able to see visually a little better which forms you haven't or have filled out depending on the color of them more than what text is in them-please feel free to give me your opinions on this.