Vizard 7 » Reference » Graphical user interfaces (GUIs) » HTML and web browsers » Displaying HTML
7.7

Displaying HTML

One handy way to display instructions to users is by displaying an HTML page on top of the application window. To do so, use the viz.window.displayhtml(<html page>) command. To make the page disappear, use viz.window.hidehtml(<html page>).

#Set the application window to fullscreen.
viz.go(viz.FULLSCREEN)
#Display web page.
viz.window.displayHTML( 'www.worldviz.com' )
#Add a keystroke to hide the HTML.
vizact.onkeydown(' ', viz.window.hideHTML )

To create a help file for a given script, include an html file with your script's name and ending in the extension '.html' (e.g. 'myscript.html' ) in your script's directory. When users hit the F1 key while your world is running, the html file will be displayed.

See also

In this section:

User interface basics

GUI elements

Getting data from GUI elements

GUI appearance

vizinfo

vizmenu

vizinput

vizdlg

vizconfig

viztip

Displaying HTML

GUI command table

Other sections:

Event Basics

Action basics

Text node basics

Example scripts:

vizInfo

vizMenu

Prompt