Image 'mouseover' change on form??

They have: 8 posts

Joined: Feb 2001

I am trying to have an image change to another when the user mouses over it - seems quite straight forward, correct?

For some reason, I can't seem to get it to work inside of a form. The JavaScript that I have set up uses

Shawn Ryder
[email protected]
http://www.webryder.com
Webryder Internet Design and Consulting

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

I'm not sure exactly what you mean without seeing the code... are you using an image as the submit button in the form, and trying to change that-- or just a general image within the form tags? Confused

They have: 8 posts

Joined: Feb 2001

sorry.. to submit / reset the form.

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Hmm.. try this-- Instead of the type=submit, use your image and link it so it will submit, then the mouseover should work, ie:

..
..

Replace name with a unique name for the form.
Replace formname with the name of the form in the FORM tag.
Replace yourfunction() with your function name (or your mouseover code) and yourimage.gif with your image URL.

Hope this does the trick. Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.