<html><div style='background-color:'><P>Hi all,</P>
<P>I have implemented image swapping with jBox. When I try panning, and Zooming out everything works fine <B>the first time </B>I move my map. But in the second (and subsequent) attempts fail Zooming in the map. Anyone knows how to correct it? I´m novice in JavaScript</P>
<P>It´s the code:</P>
<P>&lt;html&gt;&lt;head&gt;&lt;title&gt;JBOX&lt;/title&gt;</P>
<P>&lt;SCRIPT LANGUAGE="JavaScript"&gt;</P>
<P>function setbox_handler(name, minx, miny, maxx, maxy) {</P>
<P>document.mapserv.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy;</P>
<P>document.mapserv.imgxy.value = minx + " " + miny;</P>
<P>// Additional code can go here prior to the form submit, below.</P>
<P>// For example, form validation code.</P>
<P>document.mapserv.submit();</P>
<P>}</P>
<P>function seterror_handler(message) { </P>
<P>alert(message);</P>
<P>}</P>
<P>function reset_handler(name, minx, miny, maxx, maxy) { }</P>
<P>&lt;/SCRIPT&gt;</P>
<P>&lt;/head&gt;</P>
<P>&lt;body&gt;</P>
<P>&lt;form name="mapserv" method=GET action="[program]" &gt;</P>
<P>&lt;input type="hidden" name="program" value="[program]"&gt;</P>
<P>&lt;input type="hidden" name="map" value="[map]"&gt;</P>
<P>&lt;input type="hidden" name="imgext" value="[mapext]"&gt;</P>
<P>&lt;input type="hidden" name="imgxy" value="[center]"&gt;</P>
<P>&lt;input type="hidden" name="zoomsize" value="2"&gt;</P>
<P>&lt;input type="hidden" name="imgbox" value="-1 -1 -1 -1"&gt;</P>
<P>&lt;applet codebase="../java/jBox" archive="jBox.jar" code="jBox.class" width="400" height="300" name="jBox" MAYSCRIPT&gt;</P>
<P>&lt;param name="image" value="http://[host][img]"&gt;</P>
<P>&lt;/applet&gt;</P>
<P>&lt;br&gt;</P>
<P>Zoom In &lt;input type=radio name=zoomdir value=1 OnClick='document.jBox.boxon()' [zoomdir_1_check]&gt;</P>
<P>Pan &lt;input type=radio name=zoomdir value=0 OnClick='document.jBox.dragon()' [zoomdir_0_check]&gt;</P>
<P>Zoom Out &lt;input type=radio name=zoomdir value=-1 OnClick='document.jBox.boxoff()' [zoomdir_-1_check]&gt;</P>
<P>&lt;input type="submit" value="Refresh"&gt;</P>
<P>&lt;br&gt; &lt;/form&gt; </P>
<P>&lt;/body&gt;</P>
<P>&lt;/html&gt; </P>
<P>Best Regards,</P>
<P>Marcello Benigno </P></div></html>