JavaScript function AND pass the name of the callback function to the FSI
ImageFlow instance, e.g.:
Example:
function
onFSIImageFlowStart (oInstance,
idElement,
strDir,
nImages){
console.log ("The
FSI
ImageFlow
instance
with
the
id
"
+
idE " displays a total of " + n " images".}
FSIImageFlow = new $FSI.ImageFlow();
FSIImageFlow.init(dir:"images/foo",
callBackStart:onFSIImageFlowStart);
Note:
You can either pass the function or the function name in window scope as a
string.
The following callback functions can be used:
callBackStart(oInstance, idElement, srtDir,
nImagesTotal);
Called once after loading the image list.
callBackClick(oInstance, idElement, nImageIndex,
strImagePath);
Called each time the user clicks an image.
callBackFocus(oInstance, idElement, nImageIndex,
strImagePath);
Called each time the foreground image changes.
callBackZoomStart(oInstance, idElement,
nImageIndex, urlZoomedImage);
Called each time a zoomed image starts loading.
5 FSI ImageFlow
NeptuneLabs - FSI Viewer
130