<script language="javascript">
<!---
diecutting=2;
function calculate(){
if (document.form.diecuttingcheck.checked)
{var diecuttingmultiple=1}
else
{var diecuttingmultiple=0}
var total=(diecutting * diecuttingmultiple);
document.writeln(total);
}
-->
</script>
<form name="form">
<input type="checkbox" name="diecuttingcheck" onClick="calculate();">
</form>
for some reason, in firefox, it hangs when its outputting the total. there must be something wrong i'm doing... though, not sure what it is =\ anyone see anything wrong?
i'm kind of new to javascript. i hardly used it before. i have more experience with php than javascript U_U;;



Sign In
Create Account









