Hi,<br>  &nbsp;I tried that yestarday. I couldnt seem to get jBox working.&nbsp;  I made the java/jBox folder under my var/www/htdocs.&nbsp; After that I  tried everything but I got confussed.<br>  <br>  Albert<br><br><b><i>"Fawcett, David" &lt;David.Fawcett@STATE.MN.US&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><title>Message</title>      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  <meta content="MSHTML 6.00.2900.2912" name="GENERATOR">  <div><span class="718215615-02082006"><font color="#0000ff" face="Arial" size="2">Albert, </font></span></div>  <div><span class="718215615-02082006"><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>  <div><span class="718215615-02082006"><font color="#0000ff" face="Arial" size="2">You   may want to look at how it is done in the dBox interface.</font></span></div>  <div><span
 class="718215615-02082006"><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>  <div><span class="718215615-02082006"><font color="#0000ff" face="Arial" size="2"><a href="http://maps.dnr.state.mn.us/tools/dbox/">http://maps.dnr.state.mn.us/tools/dbox/</a></font></span></div>  <div><span class="718215615-02082006"><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>  <div><span class="718215615-02082006"><font color="#0000ff" face="Arial" size="2">In   fact, you may just want to use dBox or modify it.&nbsp; </font></span></div>  <div><span class="718215615-02082006"><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>  <div><span class="718215615-02082006"><font color="#0000ff" face="Arial" size="2">David.</font></span></div>  <blockquote style="margin-right: 0px;">    <div></div>    <div class="OutlookMessageHeader" align="left" dir="ltr" lang="en-us"><font face="Tahoma" size="2">-----Original
 Message-----<br><b>From:</b> UMN MapServer     Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <b>On Behalf Of </b>Albert     Anderson<br><b>Sent:</b> Wednesday, August 02, 2006 10:50 AM<br><b>To:</b>     MAPSERVER-USERS@LISTS.UMN.EDU<br><b>Subject:</b> Re: [UMN_MAPSERVER-USERS]     panning and zoomin and out, and ect<br><br></font></div>Hi,<br><br>Its not     working cause It doesnt do anything when I click the button.&nbsp; I got know     if I want my number to go negative. I am new to this.&nbsp; You told me to try     this i would try<br>if(direction=='nw'){<br>x = 1;<br>y = 1;<br>}<br><br>so do     I change my code that I have?&nbsp; else if(direction== 'nw')     {<br>&nbsp;&nbsp; x = 0 + (309 * pansize)/2.0;<br>&nbsp;&nbsp; y = 0 + (309 *     pansize)/2.0;<br><br>I dont know what I am doing?Could you help     me?<br><br>Thanks,<br>Albert<br><b><i>Brent Pedersen     &lt;bpederse@nature.Berkeley.EDU&gt;</i></b> wrote:    <blockquote class="replbq" style="border-left:
 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;">hi,       can you give more info on how it is not working?<br>what happens?<br>you may       want to check what x and y are coming out as.<br>often + will concatenate       numbers instaed of adding.<br><br>also, are you sure you want x and y to go       negative as you<br>have made them in 'nw' for example?<br><br>i would       try<br>if(direction=='nw'){<br>x = 1;<br>y = 1;<br>}<br>which i think should       recenter you on the upper left corner of the map.<br><br><br>On Wed, 2 Aug       2006, Albert Anderson wrote:<br><br>&gt; Hi,<br>&gt; I put my code with this       email "hoping" for more than just it maybe in your map file or hidden       variables thats all.<br>&gt;<br>&gt; Thanks,<br>&gt; Albert<br>&gt;<br>&gt;       Luis Treviño <LTREVINOH @gmail.com="">wrote: Albert:<br>&gt; Maybe the       problem is in your map file or in the hidden variables of your      
 template.<br>&gt;<br>&gt;<br>&gt;<br>&gt; 2006/8/1, Albert Anderson       <BART_DOGGERS @yahoo.com="">: Hi,<br>&gt;<br>&gt; I tried that code. I didnt       get it to work. Here is my code. Can you see if I need to do something else?       What else do I need?<br>&gt; <br>&gt;<br>&gt; <!-- Panning Javascript here --><br>&gt;      <script language="javascript" type="text/javascript"><br>>  var mapheight = 417;<br>>  var mapwidth = 309;<br>>    var pansize = 0.75;<br>><br>> function pan(direction) {<br>>  var x,y;<br>><br>> if(direction== 'n') {<br>>   x = (309-1)/2.0;<br>>   y = 0 - (417 * pansize)/2.0;<br>> } else if(direction== 'nw') {<br>>   x = 0 - (309 * pansize)/2.0;<br>>   y = 0 - (309 * pansize)/2.0;<br>> } else if(direction== 'ne') {<br>>   x = (309-1) + (309 * pansize)/2.0;<br>>   y = 0 - (417 * pansize)/2.0;<br>> } else if(direction== 's') {<br>>   x = (309-1)/2.0;<br>>   y = (417-1) + (417 * pansize)/2.0;<br>> } else if(direction== 'sw') {<br>>   x = 0 - (309 *
 pansize)/2.0;<br>>   y = (417-1) + (417 * pansize)/2.0;<br>> } else if(direction== 'se') {<br>>   x = (309-1) + (309 * pansize)/2.0;<br>>   y = (417-1) + (417 * pansize)/2.0;<br>> } else if(direction== 'e') {<br>>   x = (309-1) + (309 * pansize)/2.0;<br>>   y = (417-1)/2.0;<br>> } else if(direction== 'w') {<br>>   x = 0 - (309 * pansize)/2.0;<br>>   y = (417-1)/2.0;<br>>    }<br>><br>> document.mapserv.imgxy.value = x + " " + y;<br>>   document.mapserv.submit();<br>>  }<br>><br>> </script>       <br>&gt;<br>&gt; </BART_DOGGERS></LTREVINOH>      <table width="368"><br>&gt; HEIGHT="460" BORDER="0" align="left"         CELLPADDING="0" CELLSPACING="0"&gt;<br>&gt;<br>&gt;         <tbody><br>&gt;         <tr><br>&gt;           <td align="left" height="23" width="29"><br>&gt; VALIGN="top"             BGCOLOR="#e7a500"&gt;<a href="javascript:pan('nw')"><img style="border-style: none;" alt="pan nw" src="../images/cornerarrow5.gif" height="25" width="25"></a></td><br>&gt;          
 <td align="middle" bgcolor="#e7a500"><br>&gt; VALIGN="top"&gt;             <div align="center"><a href="javascript:pan('n')"><img style="border-style: none;" alt="pan north" src="../images/cornerarrow2.gif" height="25" width="25"></a></div></td><br>&gt;           <td align="right" width="30"><br>&gt; VALIGN="top" BGCOLOR="#e7a500"&gt;<a href="javascript:pan('ne')"><img style="border-style: none;" alt="pan ne" src="../images/cornerarrow6.gif" height="25" width="25"></a></td><br>&gt; </tr><br>&gt;<br>&gt;         <tr><br>&gt;           <td align="left" bgcolor="#e7a500"><br>&gt; VALIGN="MIDDLE"&gt;<a href="javascript:pan('w')"><img style="border-style: none;" alt="pan west" src="../images/cornerarrow1.gif" height="25" width="25"></a></td><br>&gt;           <td class="mapappmidaln" align="middle"><br>&gt; HEIGHT="413"             VALIGN="MIDDLE" WIDTH="309"&gt;<br>&gt;<br>&gt; <!-- calling  for map here --><br>&gt; <input src="%5Bimg%5D" name="img" border="1" height="417"
 type="image" width="309"></td><br>&gt;           <td align="right" bgcolor="#e7a500"><br>&gt; VALIGN="MIDDLE"&gt;            <div align="left"><a href="javascript:pan('e')"><img style="border-style: none;" alt="pan east" src="../images/cornerarrow3.gif" height="25" width="25"></a></div></td><br>&gt; </tr><br>&gt;         <tr><br>&gt;           <td align="left" height="21"><br>&gt; VALIGN="bottom"             BGCOLOR="#e7a500"&gt;<a href="javascript:pan('sw')"><img style="border-style: none;" alt="pan sw" src="../images/cornerarrow8.gif" height="25" width="25"></a></td><br>&gt;           <td align="middle" bgcolor="#e7a500"><br>&gt; VALIGN="bottom"&gt;             <div align="center"><a href="javascript:pan('s')"><img style="border-style: none;" alt="pan south" src="../images/cornerarrow3gif.gif" height="25" width="25"></a></div></td><br>&gt;           <td align="right" bgcolor="#e7a500"><br>&gt; VALIGN="bottom"&gt;<a href="javascript:pan('se')"><img style="border-style:
 none;" alt="pan se" src="../images/cornerarrow7.gif" height="25" width="25"></a></td><br>&gt;       </tr></tbody></table><br>&gt;<br>&gt;<br>&gt;<br>&gt; Luis Treviño       <LTREVINOH @gmail.com="">wrote:<br>&gt;<br>&gt; 2006/7/21, Albert Anderson       <BART_DOGGERS @yahoo.com="">: Hi,<br>&gt;<br>&gt; I figure out my images.       Does anyone have a _java script for using a image for panning. I have images       set for the corners of my map. I want to use them to pan.<br>&gt;<br>&gt;       You can use something like this, you have to handle your width and height of       your image:<br>&gt; alto = height, ancho = width.<br>&gt; function       paneo(direccion,alto,ancho) {<br>&gt; var x,y;<br>&gt; var pansize =       0.75;<br>&gt; if(direccion == 'n') {<br>&gt; x = (ancho-1)/2.0;<br>&gt; y =       0 - (alto * pansize)/2.0;<br>&gt; } else if(direccion == 'nw') {<br>&gt; x =       0 - (ancho * pansize)/2.0;<br>&gt; y = 0 - (ancho * pansize)/2.0;<br>&gt; }       else
 if(direccion == 'ne') {<br>&gt; x = (ancho-1) + (ancho *       pansize)/2.0;<br>&gt; y = 0 - (alto * pansize)/2.0;<br>&gt; } else       if(direccion == 's') {<br>&gt; x = (ancho-1)/2.0;<br>&gt; y = (alto-1) +       (alto * pansize)/2.0;<br>&gt; } else if(direccion == 'sw') {<br>&gt; x = 0 -       (ancho * pansize)/2.0;<br>&gt; y = (alto-1) + (alto * pansize)/2.0;<br>&gt;       } else if(direccion == 'se') {<br>&gt; x = (ancho-1) + (ancho *       pansize)/2.0;<br>&gt; y = (alto-1) + (alto * pansize)/2.0;<br>&gt; } else       if(direccion == 'e') {<br>&gt; x = (ancho-1) + (ancho *       pansize)/2.0;<br>&gt; y = (alto-1)/2.0;<br>&gt; } else if(direccion == 'w')       {<br>&gt; x = 0 - (ancho * pansize)/2.0;<br>&gt; y = (alto-1)/2.0;<br>&gt;       }<br>&gt; document.mapserv.imgxy.value = x + " " + y;<br>&gt;       document.mapserv.submit();<br>&gt; }<br>&gt;<br>&gt;<br>&gt; Anyother       question, is there a _java script for images to zoom-in and out?<br>&gt; you       can
 use the zoomdir and the zoom values within your template, like:<br>&gt;       <input value="-2" name="zoom" type="hidden"><br>&gt; <input value="-1" name="zoomdir" type="hidden"><br>&gt; for a zoom out., so you can use radio buttons to       manage this values<br>&gt;<br>&gt;<br>&gt;<br>&gt; One more question, I have       a refresh button and pan radio button, then we I click refresh to take a       layer off it moves the projective image. Why? But when I am on zoomin radio       button and click refresh it acts like its panning? Why?<br>&gt;<br>&gt;       Thanks,<br>&gt;<br>&gt; Albert<br>&gt;<br>&gt;       __________________________________________________<br>&gt; Do You       Yahoo!?<br>&gt; Tired of spam? Yahoo! Mail has the best spam protection       around<br>&gt; http://mail.yahoo.com<br>&gt;<br>&gt;<br>&gt;<br>&gt; Hope       this helps.<br>&gt;<br>&gt; Regards,<br>&gt;       Luis<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;      
 ---------------------------------<br>&gt; Yahoo! Messenger with Voice. Make       PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or       less.<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;       ---------------------------------<br>&gt; Talk is cheap. Use Yahoo!       Messenger to make PC-to-Phone calls. Great rates starting at       1¢/min.</BART_DOGGERS></LTREVINOH></blockquote><br>    <div>    </div><hr size="1">    Groups are talking. We´re listening. Check out the <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=41144/*http://groups.yahoo.com/local/newemail.html">handy     changes to Yahoo! Groups.</a> </blockquote></blockquote><br><p>&#32;
                <hr size=1>Groups are talking. We&acute;re listening. Check out the <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=41144/*http://groups.yahoo.com/local/newemail.html">handy changes to Yahoo! Groups.</a>