it refers to what "document.mapserv.img_x1"???
what is "mapserv"? and what is "img_x1"?
 
thank you

 
2006/3/2, Doug Williams <[EMAIL PROTECTED]>:
Forgive me, I simplified something and did not look at it in Interent Explorer.

To fix this for IE you will have to change the first div.

This was the code that does not work in IE:
   <div
style="position:relative;border:0px;height:300px;width:600;border-style:none;background-image:url(<?php
echo $image_url?>);"><img src="" echo $image_url?>">

This is what does work:
       <div style="position:relative;border:0px;"><button
style="height:300px;width:600;border-style:none;background-image:url(<?php
echo $image_url?>);border;0px;"  type="button"></button>


So the div pair should be:
       <div style="position:relative;border:0px;"><button
style="height:300px;width:600;border-style:none;background-image:url(<?php
echo $image_url?>);border;0px;"  type="button"></button>
       <div id=drawdiv name=drawdiv >>
style="position:absolute;top:0px;left:0;height:300px;width:600;border:0px;"></div>
  </div>


Additionally, I added the following _javascript_ to handle the case where the
user drags the mouse off the map with the mouse button pushed.  It can just
sit somewhere in a script section.

<script>

function resetZoomBox () {

  mouseIsDown = false;
  document.getElementById('drawdiv').innerHTML = '';

}

if (IE) {
if (window.Event ) document.captureEvents(Event.MOUSEUP);
document.>} else {
window.captureEvents(Event.MOUSEUP);
window.>}

</script>


I'll try to get it righter the first time next time.



--
Khaled KAMOUN

Reply via email to