Current location: Hot Scripts Forums » General Web Coding » JavaScript » Image button as a submit button


Image button as a submit button

Reply
  #1 (permalink)  
Old 07-31-05, 04:33 AM
badilcan badilcan is offline
New Member
 
Join Date: Jul 2005
Location: Turkey
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Image button as a submit button

I made a image button with fireworks,And ı want to use this button as a submit button.But I dont konow how ı can do this...
If any body know this in javascript code ,ı need his/her help...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-31-05, 05:31 AM
Big_Brother Big_Brother is offline
New Member
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hey,

You can run a JavaScript when that button is clicked using the onclick event. Then, in the JavaScript function you submit the form.

<script language="javascript">
function submitForm()
{
document.getElementById("form id").submit();
}
</script>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-31-05, 09:41 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by badilcan
I made a image button with fireworks,And ı want to use this button as a submit button.But I dont konow how ı can do this...
If any body know this in javascript code ,ı need his/her help...
Try:

<INPUT TYPE="image" SRC="myimage.gif" HEIGHT="24" WIDTH="120" BORDER=0 ALT="picture button">

It's the same format as the normal link button except instead of the type being "submit", it's now "image".
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SubmitAll button, which submit all forms on the page. al22 ASP 1 10-19-04 01:02 PM
Submit button on forms civrob PHP 4 08-10-04 05:22 PM
submit button tcooper JavaScript 1 07-15-04 03:22 AM
Help with rollover image submit button landboy HTML/XHTML/XML 3 05-30-04 12:17 PM
image submit button problems Pepe PHP 10 12-22-03 09:15 PM


All times are GMT -5. The time now is 07:36 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.