LON-CAPA Help
imageresponse implements a image-click answer. imageresponse
tags should contain a foilgroup tag, which contain foil
tags. Each foil tag can contain:
- image: required. The delimited text should
correspond to a published image resource. Example: <image>/res/adm/includes/templates/man1.jpg</image>.
The following image formats are recommended - gif, jpg or png. Other formats may work, but there may be printing or display issues.
The image should only appear once per foil.
- rectangle: required. The delimited text
specifies a rectangular area that is correct, specified as (x1,y1)-(x2,y2),
where x1, x2, y1, and y2 are number corresponding to the x and y coordinates
of two corners that define a rectangle which specifies where the right
answer for this foil is located on the image. For example, (0,0)-(100,200)
will specify that a rectangle 100 pixels wide and 200 pixels tall,
situated in the upper left of the image, is correct. At least one
rectangle is required; multiple rectangles may be specified.
- text: required. The delimited text is printed
before the image is shown on the screen. This text is typically used
to describe to the student what they are expected to click on.
Possible attributes for imageresponse are:
- max: the maximum number of foils displayed at once
(if more are specified, some will not be displayed)