PDA

View Full Version : "submit" button.. how can i use my own


mat
07-17-2002, 07:56 AM
- it's easy enough to use the generic submit button but say i want to use a little graphic instead called "search.gif" to submit the form, how would i go about that?

i'm guessing i'll be looking at some sort of function

again i am not very onto it when it comes to javascript ..at all! so i need some assistance please.

again any examples simplified for retards like me ? :p

Beck
07-17-2002, 08:28 AM
You can use the img input type. I think it works something like this:

<input type="img" src="yourimg.gif">

or something, and I think that the default is submission.

Anyone else have anything to add to that? Corrections?

Good luck. May the force be with you or something!

Cloudski
07-17-2002, 08:31 AM
Use this:

<INPUT TYPE="image" SRC="search.gif" WIDTH="imgwidth" HEIGHT="imghieght" BORDER="0" ALT="SUBMIT!">


Change the Bold stuff to numbers...

I got this from:
http://bignosebird.com
http://bignosebird.com/docs/h41.shtml - The exact page....

Thats what you needed right?

mat
07-17-2002, 09:53 AM
yeah, thanks guys :thumbsup:

premshree
07-17-2002, 01:29 PM
You could also use this :

<button style="border:0px; background:#FFFFFF; width:100; height:20" onClick="document.formName.submit()"><img src="imgName.gif"></button>