up Inquisit Language Reference

html element

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

Attributes

<html name>
/ items = itemname
/ items = (file, file, file,... )

/ showScrollbars = boolean
/ voiceOver = boolean(language, gender, age, rate)
/ dropPosition = (x, y)
/ dropPosition = (xposition, yposition)
/ dropPosition = (xexpression, yexpression)

/ dropSource = boolean
/ dropSource = expression

/ dropTarget = boolean
/ dropTarget = expression

/ erase = true
/ erase = true(colorname)
/ erase = false

/ hAlign = alignment
/ height = height
/ height = expression

/ hJustify = justification
/ hPosition = x
/ hPosition = expression

/ monitor = integer
/ onAnimate = { script }
/ position = (x, y)
/ position = (xexpression, yexpression)

/ scale = factor
/ size = (width, height)
/ size = (widthexpression, heightexpression)

/ vAlign = alignment
/ vJustify = justification
/ vPosition = y
/ vPosition = expression

/ width = width
/ width = expression

/ onPrepare = { script }
/ resetInterval = integer
/ select = selectmode(stimulus)
/ select = selectmode(list)
/ select = selectmode(integer, integer, integer, ...)
/ select = list
/ select = selectmode
/ select = index

/ selectionRate = rate
</html>

Properties

html.name.showScrollbars
html.name.voiceOver
html.name.bottom
html.name.dropSource
html.name.dropTarget
html.name.dropX
html.name.dropY
html.name.eraseColor
html.name.eraseColorBlue
html.name.eraseColorGreen
html.name.eraseColorRed
html.name.height
html.name.heightPct
html.name.heightPx
html.name.hPosition
html.name.left
html.name.monitor
html.name.right
html.name.rotation
html.name.scale
html.name.top
html.name.vPosition
html.name.width
html.name.widthPct
html.name.widthPx
html.name.x
html.name.xPct
html.name.xPx
html.name.y
html.name.yPct
html.name.yPx
html.name.currentIndex
html.name.currentItem
html.name.currentItemNumber
html.name.currentValue
html.name.erase
html.name.itemCount
html.name.items
html.name.nextIndex
html.name.nextValue
html.name.playThrough
html.name.resetInterval
html.name.selectedCount
html.name.selectedIndex
html.name.selectedValue
html.name.skip
html.name.stimulusOnset
html.name.timestamp
html.name.unselectedCount
html.name.name
html.name.typeName

Functions

html.name.containsPoint
html.name.appendItem
html.name.clearItems
html.name.insertItem
html.name.item
html.name.removeItem
html.name.resetSelection
html.name.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[0] %> 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>

Copyright Millisecond Software, LLC. All rights reserved.