AppletQuiz supports the ".GIF" and ".JPEG" image formats. My drawing program (ClarisWorks) produces files in ".PICT" format, so I use an image-converting program to convert them to ".GIF" or "JPEG".
To place an image in your question, multiple-choice answer choice, hint, or explanation, you need to place an "image code string" at the place in the text you want the image to appear. The image code string gives the applet the path to the image file (relative to the web page containing the applet), and optionally provides information about formatting the image in your question. The basic image code string looks like this:
{$IMG=filename}
The basic image code should be placed on its own line in the question file, with no text on the same line.
Image Code String |
Comments |
---|---|
{$IMG=MyDiagram.GIF} |
The image to be displayed is in the file "MyDiagram.GIF" which is located in the same folder/directory as the web page that contains the applet. |
{$img = "MyDiagram.GIF"} |
Same as above. Code strings are not case sensitive, and may contain blank spaces. The quotation marks around the file name are optional. |
{$IMG="Images/MyDiagram.JPEG"} |
The image file called "MyDiagram.JPEG" is located in the folder/subdirectory called "Images" relative to the web page that contains the applet. |
The following question file contains a question with an embedded image code. It loads the image called " Proj30v45h.GIF" from the folder/subdirectory called "Images". The image will be placed between the question and the answer choices:
\TITLE Basic Images Demo \MC A B B A A meatball rolls off a cliff 45 meters high with a speed of 30 m/s as shown below. About how long will it be in the air? {$IMG=Images/Proj30v45h.GIF} A. 2 seconds B. 3 seconds C. 4 seconds D. 45 seconds E. 30 seconds
The following applet runs this question file:
The AppletQuiz applet can support up to 10 images per question section. You can put more than 10 image codes, but the behavior of the applet will become erratic.
(By the way, this means that you can have 10 images in the question, 10 in each multiple-choice answer choice, 10 images in the hint, and 10 in the explanation. That is a restriction, but I don't think it's a terrible restriction...)