ekv320
03-31-2009, 09:24 PM
Hello all,
I'm new to Javascript, but I believe that I would use it in this instance.
I am creating a quiz, where the user will look at an image and then has to answer a question about it. I've found a simple multiple choice quiz script, but I need to find some way to connect an image to each question.
Right now, the quiz questions are stored in an array like this:
var quiz = new Array(); var r = 0;
quiz[r++] =('32~92~What is the main script used in this image?~Kufic~Thuluth~Naskh~Nasta\'liq');
quiz[r++] =('45~93~What is the main script used in this image?~Shikaste~Maghribi~Ta\'liq~Riqa\'');
I'd like to somehow attach an image to each question. If you look at this page: http://calligraphyqalam.com/styles/script-quiz.html, the image should go above the question, and change when the user clicks on "next question."
Thank you so much for any help you can give!
Elisabeth
I'm new to Javascript, but I believe that I would use it in this instance.
I am creating a quiz, where the user will look at an image and then has to answer a question about it. I've found a simple multiple choice quiz script, but I need to find some way to connect an image to each question.
Right now, the quiz questions are stored in an array like this:
var quiz = new Array(); var r = 0;
quiz[r++] =('32~92~What is the main script used in this image?~Kufic~Thuluth~Naskh~Nasta\'liq');
quiz[r++] =('45~93~What is the main script used in this image?~Shikaste~Maghribi~Ta\'liq~Riqa\'');
I'd like to somehow attach an image to each question. If you look at this page: http://calligraphyqalam.com/styles/script-quiz.html, the image should go above the question, and change when the user clicks on "next question."
Thank you so much for any help you can give!
Elisabeth