-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Skip Evans wrote: > Brand new to the list, so here's my question. I am implementing a bunch > of Dreamweaver templates a designer has built into a PHP app, and one > thing she did is create a submit button (image) that uses mouse over JS: > > <a href="user.php?req=login" target="_top" > onMouseOver="MM_swapImage('signin','','/theme/images/admin/button_signin2.gif',1)" > onMouseOut="MM_swapImgRestore()"><img > src="/theme/images/admin/button_signin.gif" alt="Sign In" name="signin" > width="86" height="20" border="0"></a> > > But notice this is an href, and it also needs to submit $_POST data > through a couple of form fields that appear above. So what I tried to do > in order to be able to retrieve the POST data on the receiving end was > convert it to the following: > > <input type="image" src="/theme/images/admin/button_signin.gif" > onfocus="MM_swapImage('signin','','/theme/images/admin/button_signin2.gif',1)" > > onblur="MM_swapImgRestore()"> > > ...However, the onfocus and onblur are not swapping out the images, as I > had hoped. (Against all odds, maybe I should add.) Ok, so you've already had the "this is not a JS list" reply, so I won't bother with that, but... Have you ever considered the possibility that onmouseover and onmouseout work in an input element? Have you tried looking up the purpose of onfocus and onblur which would have told you it's not what you need? This has been your RTFM reply. We hope you enjoyed your PHP-General experience. - -Stut -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEuL5n2WdB7L+YMm4RAr0oAJ9idoS/qkUF0oKdFasajKu20kNkTACcC1o6 47vilFoD+XJ99AjT6zA96Bo= =cWJK -----END PGP SIGNATURE----- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php