TQS Home
Trivia Quiz Shell Version 2.8 Now Available!Bot Productions Home
TQS 2.0

Back to Reference

RIMG Element

Specifies that this question has an accompanying image, which should appear to the right of the question.

Syntax
<RIMG
  SRC="src"
/>
Attributes
SRC
The name of the image file.
Placement

The RIMG element must be a child of the QUESTION element.

Children

No children are supported within the RIMG element.

Remarks

The image file must reside in the data root folder. This is, by default, the folder containing the .TQS file.

  • TQS 2.1 The data root folder can be set with the TQS element's DATAROOT attribute. To specify an absolute path, such as an Internet address, precede the path with NOROOT?.
  • TQS 2.6 To specify an embedded file, precede the path with EMBED?.

A question can have a left-side image (LIMG), a right-side image (RIMG), both images, or neither.

Examples

<QUESTION>
  <Q>Where might you find these animals?</Q>
  <LIMG SRC="horse.gif"/>
  <RIMG SRC="cow.gif"/>
  <ANSWER CORRECT="1">On a farm</ANSWER>
  <ANSWER>In an office</ANSWER>
  ...
</QUESTION>
<RIMG
  SRC="NOROOT?http://www.example.com/cow.gif"
/>
<RIMG
  SRC="EMBED?cow.gif"
/>

©2020 Bot Productions. All rights reserved.Last Updated: January 5, 2006