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

Back to Reference

IMG Element

Specifies a replacement hangman image.

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

An IMG element must be a child of the HANGMAN element, either within a location or within global settings.

Children

No children are supported within the IMG element.

Remarks

By default, TQS uses eight hangman images to show the player's errors. This means that the seventh mistake brings death. When you use replacement images, you may use as many as you want; if you have n IMG elements, death will occur on the n-1 mistake.

The parent HANGMAN element must have its REPLACEIMG attribute set to "1" in order for the IMG elements to be used.

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

  • 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?.
Examples

The user will lose upon a fourth mistake:

<HANGMAN REPLACEIMG="1">
  <IMG SRC="hangnormal.gif"/>
  <IMG SRC="hangbody.gif"/>
  <IMG SRC="hanglegs.gif"/>
  <IMG SRC="hangarms.gif"/>
  <IMG SRC="hangdead.gif"/>
  <WORD>...</WORD>
  ...
</HANGMAN>
<IMG
  SRC="NOROOT?http://www.example.com/dead.gif"
/>
<IMG
  SRC="EMBED?dead.gif"
/>


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