-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bruce Gilbert wrote: > I have a form in which I am using PHP to submit, but I would also like > to change the input background when the mouse is clicked within that > field with CSS if possible and not sure exactly how to do it. I > believe it would be an onClick event. > > An example of code for the input field would be: > > <input name="name" type="text" class="form_text" id="name" > value="<?=$name ?>" /> > > thanks for any assistance. http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes http://archivist.incutio.com/viewlist/css-discuss/23616 http://www.devarticles.com/c/a/Web-Style-Sheets/Learn-CSS-Pseudo-Classes/4/ http://www.topxml.com/css/css_pseudo_class_focus.asp - -- Matt Warden Oxford, OH, USA http://mattwarden.com This email proudly and graciously contributes to entropy. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFErAF5rI3LObhzHRMRAk2eAJwNaOWFgK3kdiefT5Xo1T0f404fdgCgqsDB ojG1ElGIlH2vQaMGTnChL7A= =VS+8 -----END PGP SIGNATURE-----