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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images for Buttons !!!!!

Status
Not open for further replies.

paragvshah

Programmer
Jan 11, 2001
109
IN
Hi Friends,

How can i use images instead of default Submit & Reset buttons created by forms. please provide the script.
 
Use this sample, the image will replace the submit button !!

<form name=&quot;myForm&quot; action=&quot;myPage.htm&quot; method=&quot;post&quot;>

<input type=&quot;image&quot; src=&quot;images/myImage.gif&quot; width=&quot;106&quot; height=&quot;25&quot; border=&quot;0&quot;>

</form>

Hope this helps ...
 
Is there a way to use MouseOver images for submit or reset buttons ??

- meerab
 
Hi meerab,

you can use an href tag with the onMouseOver event and you just have to call a javascript function who's gonna make :

document.forms[0].submit();

Hope this helps ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top