Thank you in advance to anyone that can help me out.
I have included the HTML and CSS I just need help writing the Javascript portion.
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Change Calculator</title>
<link rel="stylesheet" type="text/css" href="default.css" />
</head>
<body>
<div id="content">
<h1>Change Calculator</h1>
<label>Enter number of cents (0-99):</label>
<input type="text" id="cents" />
<input type="button" value="Calculate" name="calculate" id="calculate" /><br />
<p> </p>
<label>Quarters:</label>
<input type="text" id="quarters" class="disabled" disabled="disabled" /><br />
<label>Dimes:</label>
<input type="text" id="dimes" class="disabled" disabled="disabled" /><br />
<label>Nickels:</label>
<input type="text" id="nickels" class="disabled" disabled="disabled" /><br />
<label>Pennies:</label>
<input type="text" id="pennies" class="disabled" disabled="disabled" /><br />
<p> </p>
</div>
</body>
</html>
default.css
body {
font-family: Arial, Helvetica, sans-serif;
background: #666666;
}
#content {
width: 600px;
margin: 10px auto;
padding: 5px 20px;
background: #FFFFFF;
border: 1px solid #000000;
}
h1 {
text-align: center;
}
label {
display: block;
width: 15em;
text-align: right;
padding-right: 1em;
float: left;
}
input {
display: block;
width: 15em;
float: left;
}
br {
clear: left;
}
#calculate {
width: 6em;
margin-left: 1em;
}
.disabled {
color: #000000;
}
Attached File(s)
-
index.html (1.1K)
Number of downloads: 46 -
default.css (570bytes)
Number of downloads: 41
This post has been edited by no2pencil: 12 October 2010 - 07:48 PM
Reason for edit:: Added code from attachments to post

New Topic/Question
Reply



MultiQuote





|