HighDots Forums  

submit button with image

alt.html.dhtml alt.html.dhtml


Discuss submit button with image in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
cappycafe
 
Posts: n/a

Default submit button with image - 12-03-2003 , 02:55 PM






how can show image button with submit type? I would like to show image
instead of submit value for <input type="submit">.

thanks

Reply With Quote
  #2  
Old   
cappycafe
 
Posts: n/a

Default Re: submit button with image - 12-04-2003 , 05:55 PM






cappycafe (AT) hotmail (DOT) com (cappycafe) wrote in message news:<a13acd4f.0312031155.7c9380fc (AT) posting (DOT) google.com>...
Quote:
how can show image button with submit type? I would like to show image
instead of submit value for <input type="submit">.

thanks
I do not think my question was clear.
I'd like to replace a default submit button image to a different image
(such as .gif) withiin the form.
how should I do that?
I tired to use type="image" to point to the image file, but if I use
this image type. my form vale/variable won't pass to the action page.

So I must use the type="submit", then I cannot change this button
image to a .gif.


Reply With Quote
  #3  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: submit button with image - 12-04-2003 , 06:30 PM



cappycafe (AT) hotmail (DOT) com (cappycafe) wrote:

Quote:
I do not think my question was clear.
It was clear enough, just in a wrong group. There's nothing DHTML'ish
in the question. It's plain HTML. Besides, it was a question different
from what you are now asking.

Quote:
I'd like to replace a default submit button image to a different
image (such as .gif) withiin the form.
Just don't. Submit buttons work better.

Quote:
I tired to use type="image" to point to the image file, but if I
use this image type. my form vale/variable won't pass to the action
page.
It will affect the data that will be sent by the browser, as defined in
the HTML specification.

The details are explained at
http://www.cs.tut.fi/~jkorpela/forms/imagebutton.html

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
  #4  
Old   
Andrew Murray
 
Posts: n/a

Default Re: submit button with image - 12-05-2003 , 11:40 PM



<input type="image" name="submit"> will do it....

but I find that this does the same as a submit button, but there's no equivalent
for reset.

Otherwise you can use CSS to put a background image on an ordinary button (?).



"cappycafe" <cappycafe (AT) hotmail (DOT) com> wrote

Quote:
how can show image button with submit type? I would like to show image
instead of submit value for <input type="submit">.

thanks



Reply With Quote
  #5  
Old   
Paul
 
Posts: n/a

Default Re: submit button with image - 12-11-2003 , 03:18 PM



Quote:
how can show image button with submit type? I would like to show
image
instead of submit value for <input type="submit">.
you can use <button><!-- any HTML code --> </button> to do this.
inside the button tag you can use
onClick="document.form_name.submit()" to send the form. should work
with NS6+ and IE4+

Paul






Reply With Quote
  #6  
Old   
lamikela
 
Posts: n/a

Default Re: submit button with image - 02-02-2004 , 11:11 AM




[input type="image" value="submitname" src="send%20mail.jpg" width="64
height="14" border="0" alt="SUBMIT!" name="image"

lamikel
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message16344.htm



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.