'; for (var i = 0; i < quiz.length; i++) { if (quiz[i].isCorrect()) correct++; } var score = Math.round((correct / quiz.length) * 100); correctPage += 'Score: ' + score + ' %'; if (correct < quiz.length) { correctPage += ifWrong; for (var i = 0; i < quiz.length; i++) { if (!quiz[i].isCorrect()) { correctPage += (i + 1) + '. ' + quiz[i].userChoices[quiz[i].correctAnswer] + '
'; } } } else correctPage += ifAced; correctPage += ''; correctwin = window.open ('', '', 'height=300,width=300,scrollbars=yes'); if (correctwin.opener == null) correctwin.opener = window; correctwin.location = 'javascript:opener.correctPage'; } // Message to display if quiz is aced. var ifAced = "

Well done, all the answers are correct!

"; // Message to display if any are wrong. var ifWrong = "

Here are the correct answers to the questions you got wrong:

"; // Create four question objects... quiz = new makeArray(10); quiz[0] = new makeQuestion("When was the first shrine to the Goddess Artemis built?", 2, //Wich answer is right. 0= first, 1= second etc. "800 A.D.", "350 B.C.", "800 B.C."); quiz[1] = new makeQuestion("The Greek Artemis is the goddess of the", 0, "hunt", "family", "Knowledge"); quiz[2] = new makeQuestion("That earliest temple contained a", 1, "nugget of gold", "meteorite", "shield that once belonged to the goddess the goddess"); quiz[3] = new makeQuestion("Who engaged to build a new large temple?", 0, "an architect named Chersiphron", "The Roman government", "Phidias"); quiz[4] = new makeQuestion("When was the temple destroyed?", 1, "123 B.C", "550 B.C.", "20 A.D."); quiz[5] = new makeQuestion("The architect is thought to be a man named", 0, "Theodorus", "Lucian", "Patelanus"); quiz[6] = new makeQuestion("Who burnt down the temple?", 1, "Epideas", "Herostratus", "Paksprutus"); quiz[7] = new makeQuestion("Pliny recorded the length of this new temple at", 1, "265 feet", "425 feet", "650 feet"); quiz[8] = new makeQuestion("And the width was", 2, "140 feet", "310 feet", "225 feet"); quiz[9] = new makeQuestion("According to Pliny, construction took", 0, "120 years", "60 years", "25 years"); // --> Take this quiz to test your knowledge of the Temple of Artemis!

Correct Quiz

Click here to start again