Parameters are added to the <fsi-viewer> tag. Note that you can as well use FSI Viewer configuration files (required e.g. when using hot spots):

Adding Parameters to the viewer
//adding the fsiviewer.js script
<script src="js/fsiviewer.js" type="text/javascript"></script>

//Adding parameters directly to the tag:
<fsi-viewer width="500" height="600" src="/images/sample.jpg" 
debug="true" skin="silver">
//Example with using a FSI Viewer configuration file:
<fsi-viewer width="500" height="600" src="/images/sample.jpg" 


You can define individual configuration .xml files like this:

Simple Configuration File

     <path value="samples/Watch.jpg" />

     <skin value="silver" />
     <debug value="1" />
	 <noNav value="true" />


If you would like to use global parameters for all FSI Viewer instances, the corresponding parameters can be defined in the _default.xml.

Example _default.xml:
		<ServerType value="FSI"/>

		<skin value="white" />
		<inPlaceZoom value="true" />
		<hideUI value="false"/> 
		<adaptiveuisize value="true"/>

	<FSIBase value="config/"/>
	<Language value="english"/>
	<ScenePreload value="true"/>


You can optionally modify the way FSI Viewer works by passing parameters to the script. To do so, pass an object containing the parameters and value as an object to the constructor:

var node = document.createElement("fsi-viewer"); = "600px"; = "400px";

var parameters =
{"imagesrc" : "images/Rocker Shoe.tif", "skin":"silver", "debug":true};
$FSI.setParameters(node, parameters);

// Important: call this AFTER adding the node to the DOM


 $FSI.initCustomNode(node) initializes the given node.

 When adding multiple viewers you can initialize all new FSI Viewer nodes in one go, using this command:


or, when using different custom tags (fsi-viewer, fsi-imageflow,…):

$FSI.initCustomTags(); to initialize all new FSI custom tags.