Click to See Complete Forum and Search --> : Form Button Font Change on hover


fredmxm354
03-29-2007, 09:58 AM
Hi all,

I'm wondering if the following is possible...

I have two form buttons on a page of my website, I want to make it so that when the user hovers over it the font changes to another and if that font is unavailable then do nothing.

I have an ok amount of experience with CCS but havent really experimented with the :hover command with form buttons.

Is this possible and how would I go about implementing it.

Thanks

Fred Munro

KDLA
03-29-2007, 12:45 PM
That would probably be a javascript thing, rather than CSS.

<input type="button" value="submit" onmouseover="this.style.fontFamily='georgia, arial'"
onmouseout="this.style.fontFamily='arial'" />

If you don't want a substitution, put the default font face as the second in the string. That way, the browser will go back to that, rather than substitute.

KDLA