<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> this.marker.events.register("mouseover", this,
this.mouseover);<br>it is different than this one<br>
this.marker.events.register("mouseover", this.marker,
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 <crschmidt@metacarta.com><br>Para: victor victor <laventa147@yahoo.es><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>> Hi everybody,<br>> <br>> I am testing OpenLayers 2.5 and I have a problem with events. Let me
try to explain:<br>> <br>> I?ve created my own object that uses OpenLayers.<br>> Inside it, I create a new OpenLayers.Marker with its LonLat object
and its Icon object (with a png image)<br>> then, I register the "mouseover" event as shown below<br>> <br>> marker.events.register("mouseover", this,
this.mouseover);<br>> <br>> and <br>> <br>> marker.icon.imageDiv.style.border="1px
solid";<br>> <br>> in order to see the div bounds. Then I add the marker to the layer.<br>> <br>> So, when I load the html page in the browser:<br>> If IE 6.0<br>> 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>> If Firefox 2.0<br>> 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>