up Inquisit Language Reference

html element

The html element allows HTML pages to be displayed as stimuli on a trial.

Syntax

<html htmlname>
/ erase = true(red value, green value, blue value) or true(color value) or true(color name) or false
/ halign = alignment
/ hposition = x expression
/ items = itemname or ("item", "item", "item",... ) or ("path", "path", "path",... )
/ monitor = integer
/ onanimate = [expression; expression; expression; ...]
/ onprepare = [expression; expression; expression; ...]
/ position = (x value, y value)
/ resetinterval = integer
/ select = integer or selectionmode or selectionmode(pool) or dependency(stimulusname) or dependency(listname) or listname
/ showborders = boolean
/ showscrollbars = boolean
/ size = (width variable, height variable)
/ valign = alignment
/ voiceover = boolena(language, gender, age, rate)
/ vposition = y expression
</html>

Properties

html.htmlname.currentindex
html.htmlname.currentitem
html.htmlname.currentvalue
html.htmlname.erase
html.htmlname.erasecolor
html.htmlname.erasecolorblue
html.htmlname.erasecolorgreen
html.htmlname.erasecolorred
html.htmlname.height
html.htmlname.hposition
html.htmlname.itemcount
html.htmlname.items
html.htmlname.monitor
html.htmlname.name
html.htmlname.nextindex
html.htmlname.nextvalue
html.htmlname.resetinterval
html.htmlname.selectedcount
html.htmlname.showborders
html.htmlname.showscrollbars
html.htmlname.skip
html.htmlname.stimulusonset
html.htmlname.timestamp
html.htmlname.typename
html.htmlname.unselectedcount
html.htmlname.voiceover
html.htmlname.vposition
html.htmlname.width

Functions

html.htmlname.appenditem
html.htmlname.clearitems
html.htmlname.insertitem
html.htmlname.item
html.htmlname.removeitem
html.htmlname.resetselection
html.htmlname.setitem

Remarks

The html element is a type of stimulus (like text, pictures, sound, videos, etc.) that can be displayed on the screen by trial. A given html element can consist of a set of HTML pages that can be selected randomly or in fixed sequence. The element also specifies the size and position of the html page on the screen.

The content of the HTML file can include dynamically evaluated expressions by inserting the expression into the HTML surrounded by <% and %>. For example, the IP address of the current computer could be reported in an HTML page by embedding <% computer.ipaddress.1 %> in the desired location in the page.

Examples

The following randomly selects from 3 html files and displays the page on the upper left quadrant of the screen.

<html profiles>
/ items = ("profile1.htm", "profile2.htm", "profile3.htm")
/ position = (0, 0)
/ size = (25%, 25%)
</html>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.