<div>it refers to what &quot;document.mapserv.img_x1&quot;???</div>
<div>what is &quot;mapserv&quot;? and what is &quot;img_x1&quot;?</div>
<div>&nbsp;</div>
<div>thank you<br><br>&nbsp;</div>
<div><span class="gmail_quote">2006/3/2, Doug Williams &lt;<a href="mailto:williams@websawyer.com">williams@websawyer.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Forgive me, I simplified something and did not look at it in Interent Explorer.<br><br>To fix this for IE you will have to change the first div.
<br><br>This was the code that does not work in IE:<br>&nbsp;&nbsp; &lt;div<br>style=&quot;position:relative;border:0px;height:300px;width:600;border-style:none;background-image:url(&lt;?php<br>echo $image_url?&gt;);&quot;&gt;&lt;img src=&quot;&lt;?php echo $image_url?&gt;&quot;&gt;
<br><br>This is what does work:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div style=&quot;position:relative;border:0px;&quot;&gt;&lt;button<br>style=&quot;height:300px;width:600;border-style:none;background-image:url(&lt;?php<br>echo $image_url?&gt;);border;0px;&quot;&nbsp;&nbsp;type=&quot;button&quot;&gt;&lt;/button&gt;
<br><br><br>So the div pair should be:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div style=&quot;position:relative;border:0px;&quot;&gt;&lt;button<br>style=&quot;height:300px;width:600;border-style:none;background-image:url(&lt;?php<br>echo $image_url?&gt;);border;0px;&quot;&nbsp;&nbsp;type=&quot;button&quot;&gt;&lt;/button&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div id=drawdiv name=drawdiv onmousemove=&quot;getMouseXY(event);&quot;<br>onmousedown=&quot;setMouseXY(event,'x1','y1');&quot;<br>onmouseup=&quot;setMouseXY(event,'x2','y2');document.mapserv.submit();&quot;
<br>style=&quot;position:absolute;top:0px;left:0;height:300px;width:600;border:0px;&quot;&gt;&lt;/div&gt;<br>&nbsp;&nbsp;&lt;/div&gt;<br><br><br>Additionally, I added the following javascript to handle the case where the<br>user drags the mouse off the map with the mouse button pushed.&nbsp;&nbsp;It can just
<br>sit somewhere in a script section.<br><br>&lt;script&gt;<br><br>function resetZoomBox () {<br><br>&nbsp;&nbsp;mouseIsDown = false;<br>&nbsp;&nbsp;document.getElementById('drawdiv').innerHTML = '';<br><br>}<br><br>if (IE) {<br>if (window.Event
) document.captureEvents(Event.MOUSEUP);<br>document.onmouseup = resetZoomBox;<br>} else {<br>window.captureEvents(Event.MOUSEUP);<br>window.onmouseup = resetZoomBox;<br>}<br><br>&lt;/script&gt;<br><br><br>I'll try to get it righter the first time next time.
<br></blockquote></div><br><br clear="all"><br>-- <br>Khaled KAMOUN