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!

Chaging appearance of Submit button

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Is there anyway to change the appearance of the submit button either in ASP, HTML, or JScript?

I have a graphic I'd rather have shown, but I'm not sure how to change it (if thats even possible).

Thanks,

Jack
 
<input type=img src=&quot;img.gif&quot;>

will default to a submit button. :)

You can also do something like:

<img src=&quot;img.gif&quot; onClick=&quot;someFunction();&quot;>

Where someFunction() would perform your desired task.

hope that helps
Paul Prewett
penny.gif
penny.gif
 
hi,

I don't think Netscape 4.x supports onclick event in the image tag, i will suggust to do the following:

<a href=&quot;javascript:someFunction();&quot;><img src=&quot;img.gif&quot;></a>

hope this helps, Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
Thanks for the advice guys
(link, unless I'm doing something wrong, the
<input type = img src = &quot;src.gif&quot;> doesn't default to submit)

I'm leaning towards a jscript function, but what would the call be inside
Function SendIt()
{
Form.Submit
}
????

Jack
 
Hi Jack,

it should be
<input type=&quot;image&quot; src=&quot;src.gif&quot;>

and for javascript:
function SendIt()
{
document.formName.submit();
}

hope this helps,
Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
SWEET!!!!
Thanks Chiu!! Works like a charm!
:)

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top