Forum Moderators: open
INPUT { background-color: #EEEEEE; font-family: verdana; border: #778899 1px solid; font-size: 12px; color: #000000; padding-top: 1px; padding-bottom: 1px; padding-left: 3px; padding-right: 0px; }
onmouseover is not a valid attribute for an input box (see the W3C Input info [w3.org] on this).
You could use an onFocus and onBlur to change the colour - would that suffice?
onmouseover is not a valid attribute for an input box (see the W3C Input info on this).
Geez your right. I should double check things like that before posting so I do not feel like an idiot :). I've always reference those docs for some reason I didn't this time. Anyways...
You could use an onFocus and onBlur to change the colour - would that suffice?
Mmm would that work, onFocus to capture the event of the mouse over top of the INPUT element and onBlur to capture the event of leaving? Would I use the below code to change the border property of the style? Or how would I go about doing that? Tried the below code but didn't seem to work.
BTW, the below code worked fine when applying this to table rows using onMouseOver and onMouseOut events.
OnFocus="this.className='border2'" OnBlur="this.className='border1'"
<input type="button" class="1" value="Message 2"
onMouseover="this.className='2'"
onMouseout="this.className='1'"
onClick="message2()"
onMousedown="this.className='3'"
onMouseup="thisclassName='2'">
</body></html>
Courtesy of:
[experts-exchange.com ]
[edited by: tedster at 8:57 pm (utc) on July 8, 2003]
[edit reason] turn off smile graphics [/edit]