...

View Full Version : Advice and help with parallel arrays



midsmanuk
06-25-2007, 05:54 PM
My code is below to show bank details and interest rates but i need add another bank with interest rates with a prompt.

How do i do this.

Mike

<html>
<body>

<script type="text/javascript">

var name = "Pennygo Bank"

document.write("<h1>"+name+"</h1>")
</script>

<p>Current Account Rate 2.0%.</p>

<p>Savings Rate 4.0%.</p>

<p>e-Savings account Rate 4.5%.</p>



<script type="text/javascript">

var name = "Cardew Bank"

document.write("<h1>"+name+"</h1>")

</script>

<p>Current Account Rate 1.5%.</p>

<p>Savings Rate 3.75%.</p>

<p>e-Savings account Rate 4.75%.</p>



<script type="text/javascript">

var name = "Summer Bank"


document.write("<h1>"+name+"</h1>")
</script>

<p>Current Account Rate 1.8%.</p>

<p>Savings Rate 4.2%.</p>

<p>e-Savings account Rate 4.2%.</p>



</body>
</html>

midsmanuk
06-25-2007, 06:49 PM
I have got further i just need to no how to display the input info for the new bank like the other banks and also how to input the print or quit command

<html>
<body>

<script type="text/javascript">

var name = "Pennygo Bank"

document.write("<h1>"+name+"</h1>")
</script>

<p>Current Account Rate 2.0%.</p>

<p>Savings Rate 4.0%.</p>

<p>e-Savings account Rate 4.5%.</p>



<script type="text/javascript">

var name = "Cardew Bank"

document.write("<h1>"+name+"</h1>")

</script>

<p>Current Account Rate 1.5%.</p>

<p>Savings Rate 3.75%.</p>

<p>e-Savings account Rate 4.75%.</p>



<script type="text/javascript">

var name = "Summer Bank"


document.write("<h1>"+name+"</h1>")
</script>

<p>Current Account Rate 1.8%.</p>

<p>Savings Rate 4.2%.</p>

<p>e-Savings account Rate 4.2%.</p>

<INPUT TYPE = "button"
VALUE = "Bank Name"
ONCLICK = "displayDetails()">




<BR> <BR>

<INPUT TYPE = "button"
VALUE = "Current Account Rate"
ONCLICK = "displayDetails()">

<INPUT TYPE = "text"
NAME = "identifier"
VALUE = ''>

<BR> <BR>

<INPUT TYPE = "button"
VALUE = "Savings Account Rate"
ONCLICK = "displayDetails()">

<INPUT TYPE = "text"
NAME = "course"
VALUE = ''>

<BR> <BR>

<INPUT TYPE = "button"
VALUE = "e-savings account rate"
ONCLICK = "displayDetails()">

<INPUT TYPE = "text"
NAME = "course"
VALUE = ''>

<BR> <BR>

<INPUT TYPE = "button"
VALUE = "Press P/p to print or Q/q to quit"
ONCLICK = "displayDetails()">



</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum