By default, EO.Web ImageZoom zooms in when user clicks on the small image
and zooms out when user clicks on the large image. You can also trigger
these actions from your JavaScript code.
In order to call client side JavaScript interface, you must get a reference
to the client side ImageZoom object first:
var iz = eo_GetObject("ImageZoom1");
Once you have a reference to the ImageZoom object, you can call any of
the following methods on the object:
| Method |
Remarks |
|
zoomIn
|
Zooms in and displays the big image.
|
|
zoomOut
|
Zooms out and hides the big image.
|
|
getState
|
Get the current state of the ImageZoom control.
|
For example, the following code zooms in the image:
var iz = eo_GetObject("ImageZoom1");
iz.zoomIn();