The items attribute defines the items contained in the stimulus set.
<image> <picture> <sound> <text> <video>
or
/ items = ("item", "item", "item",... )or
/ items = ("path", "path", "path",... )itemname | The name of an item element defined elsewhere in the script. |
item | A quoted string representing an actual item. |
Items can be defined either by specifying the name of an <item element>, or by directly by listing each item in the set.
Different types of stimulus elements use the items in difference ways. If the stimulus is a text element, items represent the actual text items to be presented. If the stimulus is a picture, sound, or video, then the items are the names of the files containing the relevant media. If the stimulus is a port element, the items are strings of 0's and 1's representing 8-bit TTL signals. Characters in an item are specified in descending bit order, with the leftmost 0 or 1 value representing the highest bit and the rightmost value representing the lowest order bit. See How to Present TTL Signals Through the Parallel Port for more details.
Text element items can be richly formatted using a subset of supported HTML markup tags. For example, markup tags can be used to make selected words appear in bold, italics, a different font, or a different color. For more information on formatting options, see Using HTML Markup in Text
The following selects items defined in an external items element named "presidentitems":
<text presidents>
/ items = presidentitems
</text>
The following defines text items:
<text presidents>
/ items = ("George Washington", "John Adams", "Thomas Jefferson")
</text>
The following defines picture items:
<picture moutains>
/ items = ("rainier.bmp", "baker.jpg", "sainthelens.gif")
</picture>
The following defines sound items:
<sound rock>
/ items = ("beatles.wav", "stones.wav", "thewho.wav")
</sound>
The following defines video items:
<video tvshows>
/ items = ("desparatehousewives.mpg", "thedailyshow.avi", "southpark.wmv")
</video>
The following defines port items:
<port portsignal>
/ items = ("00011101", "00000000", "11111111")
</port>