NeptuneLabs FSI Viewer JS User Manual page 412

Table of Contents

Advertisement

2) Provide the appropriate action via SetVariable command
To control FSI Viewer from JavaScript you have to pass the appropriate command
by setting the "FSICMD " variable of the FSI Viewer movie clip using the SetVariable
() function.
Example: Button "Zoom In" (MSIE)
<input type="button" value="Zoom In"
onMouseDown="document.all.fsiviewer.SetVariable('FSICMD',
'ZoomIn');"
onMouseUp
="document.all.fsiviewer.SetVariable('FSICMD', '');
>
Command Parameters
There are 3 different command types you can pass to FSI Viewer, FSI Pages or FSI
Showcase:
1. Initiate an action directly, e.g. "ZoomIn" or "Reset"
2. Press and release of FSI Viewer buttons, e.g. "Button:Mouse_Mode_0"
3. Zoom to a specified image section, e.g. "Goto:1,6,0.4,0.2,0.6,0.4"
Please see the → Hotspot Authoring section for details on how to obtain
valid image section parameters.
The following table lists possible values you can pass to FSI Viewer.
Please note that especially regarding the "Button:" command there might be more
or not all commands listed available, depending on your FSI Viewer skin and
integrated plug-ins.
All command strings have to be provided exactly as stated in the lists below,
especially regarding upper-/ lowercase writing and white spaces.
1) Direct Commands
Usage: FSIViewer.SetVariable('FSICMD', '[command]');
To stop the initiated action use: FSIViewer.SetVariable('FSICMD', '‚);
NeptuneLabs - FSI Viewer
12 Plug-in Reference
412

Advertisement

Table of Contents
loading

Table of Contents