I have done up the code for this but it keeps telling me that variable dp1 is undefined. I am also not even sure if I am on the right track with the coding.
<table border="0" width="450" height="50" bordercolordark="#330000" cellpadding="10" cellspacing="10">
<tr>
<td width="65%" align="left" height="15">
<div align="left"><input type="image" src="images/500.gif" alt="Submit button" height=70 width=200 value ="" onclick="make_deposit(dp1)"></div>
</td>
<td width="65%" align="middle" height="15">
<div align="center"><input type="image" src="images/600.gif" alt="Submit button" height=70 width=200 value ="" onclick= "make_deposit(dp2)"></div>
</td>
<td width="100%" align="right" height="15">
<div align="right"><input type="image" src="images/700.gif" alt="Submit button" height=70 width=200 value ="" onclick= "make_deposit(dp3)"></div>
</td><br />
</tr>
<tr>
<td width="65%" align="left" height="30">
<div align="left"><input type="image" src="images/800.gif" alt="Submit button" height=70 width=200 value = "" onclick= "make_deposit(dp4)"></div>
</td>
<td width="65%" align="middle" height="30">
<div align="center"><input type="image" src="images/900.gif" alt="Submit button" height=70 width=200 value = "" onclick="make_deposit(dp5);"></div>
</td>
<td width="65%" align="right" height="30">
<div align="right"><input type="image" src="images/1000.gif" alt="Submit button" height=70 width=200 value = "" onclick="make_deposit(dp6)";></div>
</td>
</tr>
</table>
<script>
function make_deposit(dp1, dp2, dp3, dp4, dp5, dp6)
{
dp1=500
dp2=600
dp3=700
dp4=800
dp5=900
dp6=1000
}
alert(dp1)
</script>
<script>
var amountleft
function showbal() {
document.showbal.aleft.value=amountleft
timer=setTimeout("showbal()", 1000)
}
</script>
<form name="showbal">
<div align="center"><b>Amount left</b>:
<input type = "text" name= "aleft" size = "8" value=""></div>
</form>
<p>
<font color=#FFFF00 font size="3" font face="Comic Sans MS"><b></b>Step 1: </b>Click on the amount that you want to deposit into your account. When you have made a deposit. Go to Step 2.</p>
Any help would be greatly appreciated.

New Topic/Question
Reply



MultiQuote






|