Advanced HTML Editing
"hiding the answers"
While taking the online quiz generated by the quiz creator a
student could view the page source and see the answers.
A way to make it harder to see the answers follows:
Here is an example of the answers in the html of a quiz:
|
<script language="JavaScript"> <!-- var numQues = 20; var numChoi = 3; var answers = new Array(20); answers[0] = "Motherboard";
function getScore(form) { |
Highlight from:
var answers = new Array(20);.......to the last answer .....answers[19] = "Multitasking";
cut that text from the html document and paste it into a word processor and save it as a text file with a file extension ".js" (example "answer.js"). You need to save the file in the same folder as your original quiz.htm document
Add the following code into the top of your quiz.htm document:
Original created by the quiz creator:
|
<html> |
|
<html> |
After you publish your web page, you can then sit back and work on other things while the computer grades your quizzes and emails you the results!
|
|
|
|
|
|
|
|