Image 'mouseover' change on form??
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 posted this at 20:55 — 25th September 2001.
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?
Java Script: A Beginner's Guide
Page Resource
sryder posted this at 21:20 — 25th September 2001.
They have: 8 posts
Joined: Feb 2001
sorry.. to submit / reset the form.
John Pollock posted this at 22:33 — 25th September 2001.
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.
Java Script: A Beginner's Guide
Page Resource
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.