Analysis Quiz

Step One - Set up the questions for your quiz using either the Analysis Quiz Maker or Alternate Analysis Quiz Maker instructions.

Step Two - select the JavaScript in the following textarea and save it as quizresh.js.

quizresh.js

Step Three - add the following code immediately before the </head> tag in the page where you want the quiz displayed.

<script src="quizresh.js" type="text/javascript"></script>

Step Four - define the results to be displayed for each percentage range. The following form allows you to have up to four different results that will be selected to be displayed based on the percentage value obtained from the quiz.

All that you need to do is to enter the possible results and the boundary conditions that separate them into the form below.

If you know HTML then you can use that to format your results. If you don't know HTML then you can enter your results in plain text and the form will attempt to format it for you.

Results
Above answer when result is or less.
Above answer when result is or less.
Above answer when result is or less.
Above answer when result is 100 or less.
Result entries contain HTML.

Step Five - save the content of the above form as quizresb.js and then attach this script into the body of your answer page where you want the quiz result to appear using:

<script src="quizresb.js" type="text/javascript"></script>

 

This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow
Donate