Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Advice and help with parallel arrays

    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>

  • #2
    New Coder
    Join Date
    Jun 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help

    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>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •