<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;">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>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; marker.events.register("mouseover",&nbsp; this,&nbsp; this.mouseover);<br><br>and <br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; If IE 6.0<br>&nbsp;&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>&nbsp;&nbsp;&nbsp; If Firefox 2.0<br>&nbsp;&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>Any suggestions, please?<br><br>Thanks.<br><br>Javier.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  <br><br><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>