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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Images in Arrays

    Hi

    How can I place an image into an array?...I am VERY new to java script and have an assignment to write an online quiz, using the 'usual' multiple choice answer questions, which I have managed to do, but now have to replace the answers with multiple choice images (as answers), with radio button selection...an example of the array I'm using:

    questions[1] = new Array();
    questions[1][0] = "Winnie The Pooh is a:";
    questions[1][1] = "Tiger";
    questions[1][2] = "Bear";
    questions[1][3] = "Donkey";
    questions[1][4] = "Pig";

    Many Thanks
    Alison

  • #2
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Code:
    questions[1][1] = new Image();

  • #3
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you,

    I will go and try it out


  •  

    Posting Permissions

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