<div>it refers to what "document.mapserv.img_x1"???</div>
<div>what is "mapserv"? and what is "img_x1"?</div>
<div> </div>
<div>thank you<br><br> </div>
<div><span class="gmail_quote">2006/3/2, Doug Williams <<a href="mailto:williams@websawyer.com">williams@websawyer.com</a>>:</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> <div<br>style="position:relative;border:0px;height:300px;width:600;border-style:none;background-image:url(<?php<br>echo $image_url?>);"><img src="<?php echo $image_url?>">
<br><br>This is what does work:<br> <div style="position:relative;border:0px;"><button<br>style="height:300px;width:600;border-style:none;background-image:url(<?php<br>echo $image_url?>);border;0px;" type="button"></button>
<br><br><br>So the div pair should be:<br> <div style="position:relative;border:0px;"><button<br>style="height:300px;width:600;border-style:none;background-image:url(<?php<br>echo $image_url?>);border;0px;" type="button"></button>
<br> <div id=drawdiv name=drawdiv onmousemove="getMouseXY(event);"<br>onmousedown="setMouseXY(event,'x1','y1');"<br>onmouseup="setMouseXY(event,'x2','y2');document.mapserv.submit();"
<br>style="position:absolute;top:0px;left:0;height:300px;width:600;border:0px;"></div><br> </div><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. It can just
<br>sit somewhere in a script section.<br><br><script><br><br>function resetZoomBox () {<br><br> mouseIsDown = false;<br> 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></script><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