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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
liveaspankajCommented:
<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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.