Page 1 of 1
How do i replace a form submit button to an image?
Posted: Thu Dec 05, 2002 2:22 pm
by Owe Blomqvist
Hi.
I find these form submit buttons extremely boring.
Is there a way of having an image submiting the form by clicking it?
Posted: Thu Dec 05, 2002 2:36 pm
by Rob the R
You can use:
Code: Select all
<input type="image" src="button.gif" ...>
If you just want differently-styled text in the button (size, fg/bg color, etc.), you can use a style-sheet, instead. This way, you can make all the buttons on your site look the same to maintain a consistent feel for your users, with the added advantage that you don't have to create a graphic for each button.
I did a quick web search (I love Google) and found this site:
http://www.cs.tut.fi/~jkorpela/forms/imagebutton.html
which is a detailed discourse about the pros and cons about using images or style sheets instead of the default submit button.
Posted: Thu Dec 05, 2002 2:41 pm
by Owe Blomqvist
Thank you very much for the help and the fast reply.
Best regards,
Owe Blomqvist
Posted: Thu Dec 05, 2002 6:37 pm
by mydimension
i have moved this to the client side forum cause the topic matter is client side.