Hi all,<br><br> I am a javascript for panning with images. I type in all the code but its not panning. Here is part of the html code. Is there something wrong with my code? I am using a projection image with an extent of 626173.309834 5085113.091715 694065.960556 5170035.212592. The image set in a table size of 309px by 417px. Could someone give a some suggestions. Thanks<br><br>Albert<br><br><script 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> document.mapserv.imgxy.value = x + " " + y;<br> document.mapserv.submit(); <br>} <br><br></script><br><br><TR><br> <TD width="19" height="23" ALIGN="left" VALIGN="top" BGCOLOR="#e7a500"><a
href="javascript:pan('nw')"><img src="../images/cornerarrow5.gif" alt="pan nw" width="25" height="25" style="border-style:none"></a></TD><br><br> <TD ALIGN="center" BGCOLOR="#e7a500" VALIGN="top"> <div align="center"><a href="javascript:pan('n')"><img src="../images/cornerarrow2.gif" alt="pan north" width="25" height="25" style="border-style:none"></a></div></TD><br> <br><TD width="18" ALIGN="right" VALIGN="top" BGCOLOR="#e7a500"><a href="javascript:pan('ne')"><img src="../images/cornerarrow6.gif" alt="pan ne" width="25" height="25" style="border-style:none"></a></TD><br>
</TR><br><br><p>
<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>