Javascript / HTML Question - Submit Button Mouseovers

Superwormy

Golden Member
Feb 7, 2001
1,637
0
0
Aight, so I have a submit button on a form, actually multiple submit buttons on a form... but thats not the issue anyway right so here goes:

I have a submit button, its a submit button using

<INPUT TYPE="image" SRC="temp/buttonsrc.gif" name="buttonsrc" alt="View Detailed Information" VALUE="detail">

to make it an gif image button like, and I want to have this button have a mouseover, but obviously theres no link for the mouseover to be with... so how do I do it?

The current gif image needs to change to 'buttonsrc_mouseover.gif' on mouseover, anyone know how? I searching internet lots can't find anything... :-(
 

lordex

Member
Feb 7, 2002
133
0
0
How about using a regular image link so you can do mouseover with it, and also put in a 'onclick()' to submit the form thru Javascript?
 

RSMemphis

Golden Member
Oct 6, 2001
1,521
0
0
have you tried:

document.myform.buttonsrc.src="whatever your source"

where myform is the name of your form.
 

Superwormy

Golden Member
Feb 7, 2001
1,637
0
0
Eh...? OK, those both confused me, if someone coudl clarify a little bit???

It can't be a regular link (ie cannot be <a href="bla bla bla..." ) I don't think at least, unless that <a href> statement can have a value like previous somehow...

Second solution I'll try... but not sure where to use that....
 

lordex

Member
Feb 7, 2002
133
0
0


<< Eh...? OK, those both confused me, if someone coudl clarify a little bit???

It can't be a regular link (ie cannot be <a href="bla bla bla..." ) I don't think at least, unless that <a href> statement can have a value like previous somehow...

Second solution I'll try... but not sure where to use that....
>>



My idea was that you could try something like this:
<a href="" onclick="form.submit()"><img src="imagelink"></a>
Something like that(I haven't done javascript stuff for over a year) :)