hi
i need a little help pls.
im trying to write a Black Jack game with JS(home assignement)
can someone pls tell me why when i click on the img, the number 4000 doesnt change?
here is the code
<html>
<head>
<title>Black Jack</title>
<Script Language="JavaScript">
function hit(f)
{
var i=3900;
f.money.value = i;
}
</Script>
</head>
<body>
<form name="bj">
<table width="100%" height="100%" border="1">
<tr align="center" height="25%">
<td>Money:<input name="money" type="text" value="4000" size="4" /> $</td>
<td> </td>
<th> </td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td></td>
</tr>
<tr align="center" height="50">
<td><input type="image" src="c255.jpg" name="c25" onClick="hit(this.form)"/></td>
<td><input type="image" src="c50.jpg" name="c50"/></td>
<td><input type="image" src="c100.jpg" name="c100"/></td>
<td><input type="submit" value="Hit Me" onClick="hit(this.form)"/></td>
<td><input type="submit" value="Hold" /></td>
<td><input type="submit" value="Deal Again" /></td>
</tr>
</table>
</form>
</body>
</html>
thanks in advance!