<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">The same behavior. I only draw the border to define the icon area. I don't
know what is happening but the behavior is different with diferent target objects, this is:<br><br>if I code something like this <br>&nbsp;&nbsp;&nbsp; this.marker.events.register("mouseover",&nbsp; this,
&nbsp; this.mouseover);<br>it is different than this one<br>
&nbsp;&nbsp;&nbsp; this.marker.events.register("mouseover",&nbsp; this.marker,
&nbsp; this.mouseover);<br><br>In the second case it doesn't work in IE 6.0 neither in Firefox.<br><br>Thanks.<br><br>Regards.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Mensaje original ----<br>De: Christopher Schmidt &lt;crschmidt@metacarta.com&gt;<br>Para: victor victor &lt;laventa147@yahoo.es&gt;<br>CC: dev@openlayers.org<br>Enviado: martes, 16 de octubre, 2007 14:07:22<br>Asunto: Re: [OpenLayers-Dev] Problem with events in OpenLayers 2.5<br><br>On Tue, Oct 16, 2007 at 08:07:45AM +0000, victor victor wrote:<br>&gt; Hi everybody,<br>&gt; <br>&gt; I am testing OpenLayers 2.5 and I have a problem with events. Let me
 try to explain:<br>&gt; <br>&gt; I?ve created my own object that uses OpenLayers.<br>&gt; Inside it, I create a new OpenLayers.Marker with its LonLat object
 and its Icon object (with a png image)<br>&gt; then, I register the "mouseover" event as shown below<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  marker.events.register("mouseover",&nbsp; this,
&nbsp; this.mouseover);<br>&gt; <br>&gt; and <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  marker.icon.imageDiv.style.border="1px
 solid";<br>&gt; <br>&gt; in order to see the div bounds. Then I add the marker to the layer.<br>&gt; <br>&gt; So, when I load the html page in the browser:<br>&gt;&nbsp; &nbsp;  If IE 6.0<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  I can see the borders and the marker in the browser, but the
 this.mouseover function only fires if I do mouseover in the area
 situated between the borders and the image (not the image itself).<br>&gt;&nbsp; &nbsp;  If Firefox 2.0<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  I can see the borders and the marker in the browser, but the
 this.mouseover function is never fired.<br><br>What happens if you remove the border?<br><br>Regards,<br>-- <br>Christopher Schmidt<br>MetaCarta<br></div><br></div></div><br>


      <hr size=1><br><font face="Verdana" size="-2">Sé un Mejor Amante del Cine<br>¿Quieres saber cómo? <a href="http://us.rd.yahoo.com/mail/es/tagline/beabetter/*http://advision.webevents.yahoo.com/reto/entretenimiento.html">¡Deja que otras personas te ayuden!
</a>.<br></font></body></html>