Code:
<!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" xml:lang="en" lang="en">
<head>
<title></title>
<style type="text/css">
/*<![CDATA[*/
body {
margin: 0;
padding: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
}
.btn {
float: left;
clear: both;
background: url(images/btn_left.png) no-repeat;
padding: 0 0 0 10px;
margin: 5px 0;
}
.btn a{
float: left;
height: 40px;
background: url(images/btn_stretch.png) repeat-x left top;
line-height: 40px;
padding: 0 10px;
color: #fff;
font-size: 1em;
text-decoration: none;
}
.btn span {
background: url(images/btn_right.png) no-repeat;
float: left;
width: 10px;
height: 40px;
}
.btn_addtocart { background-color: green; }
/*]]>*/
</style>
<script type="text/javascript">
/*<![CDATA[*/
function FunctionName(){
alert('submit');
return false;
}
/*]]>*/
</script>
</head>
<body>
<form onsubmit="return FunctionName()">
<div class="btn btn_addtocart"><a href="#">Submit</a><span></span></div>
<div class="clear"></div>
Background Color: Red
The existing application uses
<input type="image" src="http://www.vicsjavascripts.org.uk/StdImages/One.gif">
</form>
</body>
</html>
Bookmarks