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

Back to Reference

LIMG Element

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

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

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

Children

No children are supported within the LIMG 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>What animal is this?</Q>
  <LIMG SRC="horse.gif"/>
  <ANSWER CORRECT="1">Horse</ANSWER>
  <ANSWER>Cow</ANSWER>
  ...
</QUESTION>
<LIMG
  SRC="NOROOT?http://www.example.com/horse.gif"
/>
<LIMG
  SRC="EMBED?horse.gif"
/>

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