![]() |
XIOview V1.5 Image Zoom Applet - TRIAL VERSION - Example ImplementationsPlease consider to license XIOview ». For more information about this applet visit www.XIO.biz ». |
Code for Demonstration 3Filtering and basic JavaScript-control.
This page contains the source code for the applet configuration and two HTML-excerpts from the
JavaScript-controls used in demonstration 3.
<applet code="biz.xio.XIOview" archive="CODE/XIOview.jar" codebase="../" name="applet1" width="240px" height="200px" alt="XIOview 1.5 Java Applet (requires a Java-enabled browser)">
<param name="cabbase" value="CODE/XIOview.cab">
<param name="zoom" value="50%">
<!-- Text below is shown if Java is not currently supported or activated. --> </applet>
Additionally used applet-parameters:
<!-- more html code -->
<a class="control" href="JavaScript:document.applet1.setCfg('zoom=50%')">X</a>
<b>+</b>
As you can see here, changing parameters is easy: Simply call the "setConfiguration(...)" or
- shorthand - "setCfg(...)"-method of XIOview via JavaScript and assign values to the
parameters of interest (here: zoom).
<!-- more html code -->
<a class="control" href="JavaScript:document.applet1.setCfg('image_brightness=50% + zoom_brightness=50%')">X</a>
<b>+</b> As illustrated by the second code excerpt, you can change multiple options at the same time by placing a "+" between each parameter assignment. So, in this case, the brightness-settings are modified equally for the zoomed-area and the scaled image at the same time. |
Copyright © 2004-2005 by Martin Rieger, XIO® Software. XIO® is a registered trademark of
Martin Rieger. |