Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rollover for form submit button 1

Status
Not open for further replies.

j111111

Technical User
Dec 13, 2002
46
GB
hello,

I currently have an image for my submit button on a form. The HTML code is:

<input type=&quot;image&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;../images/loginarrow.gif&quot; width=&quot;18&quot; height=&quot;20&quot; alt=&quot;go&quot;>

I am wanting to make the image rollover but have no idea where to begin as I don't want to mess up the rest of the form.

Is it possible to add OnMouseOver event such as swap image into this tag?

Can anyone help?
 
try this...

***
<form name=form1 action=javascript:alert()>
<input type=&quot;image&quot; border=&quot;0&quot; name=&quot;submit&quot; onmouseover=this.src='../images/loginarrow.gif'; onmouseout=this.src='../images/loginarrow2.gif' src='../images/loginarrow.gif' width=&quot;18&quot; height=&quot;20&quot; alt=&quot;go&quot;>
</form>

hope that helps...

- g
 
Thanks, it's worked really well!

Josie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top