html using an image to run java script on the page instead of a normal button and reset the page

am using the below button to reset the page but need to incorperate and image instead of a button
<input type="reset" class="formbutton" value="{lang mkey='reset'}" />
<input type="image" src="{$image_dir}reset.jpg"  alt="Submit button"> this gives a button but cannot work out the reset syntax into the line
****************** part 2
this button runs and runs the java ok but i need to incorperte an image to do the same job into the button or an image that can run javascript
the path is src="{$image_dir}reset.jpg" for the image
<input type="button" value="{lang mkey='sb_show_all'}" class="formbutton" onclick="getSB('all');" />&nbsp;
            
sydneyguyAsked:
Who is Participating?
 
leakim971Connect With a Mentor PluritechnicianCommented:
Check this :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form>
<input type="text" value="" />
<input id="jekyll" type="reset" class="formbutton" value="{lang mkey='reset'}" style="display:none" />
<input type="image" src="http://fr.academic.ru/pictures/frwiki/68/Dr_Jekyll_and_Mr_Hyde_poster.png" width="230" height="157" alt="Submit button" onClick="document.getElementById('jekyll').click();return false;">
</form>
</body>
</html>

Open in new window

0
 
liveaspankajConnect With a Mentor Commented:
<style>
#inputid{
background:url(/images/Btn.PNG) no-repeat;
cursor:pointer;
width: 200px;
height: 100px;
border: none;
}
</style>


<input id="inputid" type="reset" class="formbutton" value="{lang mkey='reset'}" />
0
 
sydneyguyAuthor Commented:
thanks for the solutions i am now up and running
0
 
liveaspankajCommented:
welcome :)
0
 
leakim971PluritechnicianCommented:
You're welcome! Thanks for the points!

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.