Hi all,<br><br>&nbsp;I am a javascript for panning with images.&nbsp; I type in all the code but its not panning.&nbsp; Here is part of the html code. Is there something wrong with my code?&nbsp; I am using a projection image with an extent of 626173.309834 5085113.091715 694065.960556 5170035.212592.&nbsp; The image set in a table size of 309px by 417px. Could someone give a some suggestions.&nbsp; Thanks<br><br>Albert<br><br>&lt;script type="text/javascript"&gt;<br>&nbsp; var mapheight = 417;<br>&nbsp; var mapwidth = 309;<br>&nbsp; var pansize = 0.75;<br><br>function pan(direction) {<br>&nbsp; var x,y;<br>&nbsp; <br>&nbsp;if(direction== 'n') {<br>&nbsp;&nbsp; x = (309-1)/2.0;<br>&nbsp;&nbsp; y = 0 - (417 * pansize)/2.0;<br>&nbsp;} else if(direction== 'nw') {<br>&nbsp;&nbsp; x = 0 - (309 * pansize)/2.0;<br>&nbsp;&nbsp; y = 0 - (309 * pansize)/2.0;<br>&nbsp;} else if(direction== 'ne') {<br>&nbsp;&nbsp; x = (309-1) + (309 * pansize)/2.0;<br>&nbsp;&nbsp; y = 0 - (417 *
 pansize)/2.0;<br>&nbsp;} else if(direction== 's') {<br>&nbsp;&nbsp; x = (309-1)/2.0;<br>&nbsp;&nbsp; y = (417-1) + (417 * pansize)/2.0;<br>&nbsp;} else if(direction== 'sw') {<br>&nbsp;&nbsp; x = 0 - (309 * pansize)/2.0;<br>&nbsp;&nbsp; y = (417-1) + (417 * pansize)/2.0;<br>&nbsp;} else if(direction== 'se') {<br>&nbsp;&nbsp; x = (309-1) + (309 * pansize)/2.0;<br>&nbsp;&nbsp; y = (417-1) + (417 * pansize)/2.0;<br>&nbsp;} else if(direction== 'e') {<br>&nbsp;&nbsp; x = (309-1) + (309 * pansize)/2.0;<br>&nbsp;&nbsp; y = (417-1)/2.0;<br>&nbsp;} else if(direction== 'w') {<br>&nbsp;&nbsp; x = 0 - (309 * pansize)/2.0;<br>&nbsp;&nbsp; y = (417-1)/2.0;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;document.mapserv.imgxy.value = x + " " + y;<br>&nbsp;document.mapserv.submit();&nbsp; <br>}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&lt;/script&gt;<br><br>&lt;TR&gt;<br>&nbsp;&lt;TD width="19" height="23" ALIGN="left" VALIGN="top" BGCOLOR="#e7a500"&gt;&lt;a
 href="javascript:pan('nw')"&gt;&lt;img src="../images/cornerarrow5.gif" alt="pan nw" width="25" height="25" style="border-style:none"&gt;&lt;/a&gt;&lt;/TD&gt;<br><br>&nbsp;&lt;TD ALIGN="center" BGCOLOR="#e7a500"&nbsp; VALIGN="top"&gt; &lt;div align="center"&gt;&lt;a href="javascript:pan('n')"&gt;&lt;img src="../images/cornerarrow2.gif" alt="pan north" width="25" height="25" style="border-style:none"&gt;&lt;/a&gt;&lt;/div&gt;&lt;/TD&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <br>&lt;TD width="18" ALIGN="right" VALIGN="top" BGCOLOR="#e7a500"&gt;&lt;a href="javascript:pan('ne')"&gt;&lt;img src="../images/cornerarrow6.gif" alt="pan ne" width="25" height="25" style="border-style:none"&gt;&lt;/a&gt;&lt;/TD&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/TR&gt;<br><br><p>&#32;
        
                <hr size=1>See the all-new, redesigned Yahoo.com. <a href="http://us.rd.yahoo.com/evt=40762/*http://www.yahoo.com/preview"> Check it out.</a>