View Full Version : Images in Arrays

12-07-2004, 12:01 AM

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

12-07-2004, 03:10 AM
questions[1][1] = new Image();

12-07-2004, 11:19 PM
Thank you,

I will go and try it out :thumbsup:

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum