<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body text="#000000" bgcolor="#ffffff">
Oh, the code i sent was part of a larger class i had written, so i just
stripped out unnessecarry things, but i think you can initialize it by<br>
<br>
var map = new OpenLayers.Map("map");<br>
new MouseOver(map);<br>
<br>
(or you can edit the class to f.ex <br>
GeoIKT.MouseOver = OpenLayers.Class({...code..});<br>
and initialize by new GeoIKT.MouseOver(map); )<br>
<br>
And you will of course have to extend the class in some way to handle
the event. I guess i probably should have written this class as an
OpenLayers.Event class, but this soultion worked for me, as i needed
the functionality as part of a custom control.<br>
<br>
<br>
Hope this helps, at least the basic idea of capturing mouse stops is
outlined here.<br>
<br>
-atle<br>
<br>
On 02/26/2010 11:37 AM, Vidal, Antoni wrote:
<blockquote
cite="mid:784FAC631C0CB14CAE68764151D5DA41081D6760@CORRIOL.icc.local"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML amb format previ Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Text de globus Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.TextdeglobusCar
        {mso-style-name:"Text de globus Car";
        mso-style-priority:99;
        mso-style-link:"Text de globus";
        font-family:"Tahoma","sans-serif";}
span.EstilCorreuElectrnic19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EstilCorreuElectrnic20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLambformatpreviCar
        {mso-style-name:"HTML amb format previ Car";
        mso-style-priority:99;
        mso-style-link:"HTML amb format previ";
        font-family:Consolas;
        color:black;}
span.EstilCorreuElectrnic23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
..MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Hello
again,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">May I ask
a litle question?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">When or
how initialize your
class?. I.e. var px = new OpenLayers.Size(128, 123);, but in the case
of your
class there isn’t an object !<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Arial","sans-serif";">Antoni
Vidal</span></b><span
style="font-size: 12pt; font-family: "Times New Roman","serif"; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Arial","sans-serif"; color: gray;">Unitat
d'Aplicacions SIG-WEB<br>
Ext. 3228</span><span
style="font-size: 10pt; font-family: "Arial","sans-serif"; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">De:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">
Sveen Atle Frenvik (Geomatikk IKT)
[<a class="moz-txt-link-freetext" href="mailto:Atle.Frenvik.Sveen@geomatikk.no">mailto:Atle.Frenvik.Sveen@geomatikk.no</a>]
<br>
<b>Enviat:</b> viernes, 26 de febrero de 2010 11:08<br>
<b>Per a:</b> Vidal, Antoni<br>
<b>A/c:</b> <a class="moz-txt-link-abbreviated" href="mailto:users@openlayers.org">users@openlayers.org</a><br>
<b>Tema:</b> Re: Mouse Move in OL<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">sorry, something mis-formatted my mail, take a
look at <a moz-do-not-send="true"
href="http://dl.dropbox.com/u/860041/mousestop.js">http://dl.dropbox.com/u/860041/mousestop.js</a><br>
<br>
-atle<br>
<br>
On 02/26/2010 10:47 AM, Vidal, Antoni wrote: <o:p></o:p></p>
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I’ve read your response in the list but is not
so clear. Can
you send me the attached code directly?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thank’s a lot.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Arial","sans-serif";">Antoni
Vidal</span></b><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Arial","sans-serif"; color: gray;">Unitat
d'Aplicacions SIG-WEB<br>
<a moz-do-not-send="true"
href="http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392"><span
style="color: gray;">Institut Cartogràfic de Catalunya</span></a><br>
Parc de Montjuïc, E-08038 Barcelona<br>
Tel. (+34) 93 567 15 00 (ext. 3228)<br>
<a moz-do-not-send="true" href="http://www.icc.cat/">www.icc.cat</a></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Arial","sans-serif";"> </span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 12pt; font-family: "Times New Roman","serif";"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Atle Frenvik Sveen<o:p></o:p></pre>
<pre>GIS Konsulent<o:p></o:p></pre>
<pre>Geomatikk IKT AS<o:p></o:p></pre>
<pre>tlf: 45 27 86 89<o:p></o:p></pre>
<pre><a moz-do-not-send="true"
href="mailto:atle.frenvik.sveen@geomatikk.no">atle.frenvik.sveen@geomatikk.no</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Atle Frenvik Sveen
GIS Konsulent
Geomatikk IKT AS
tlf: 45 27 86 89
<a class="moz-txt-link-abbreviated" href="mailto:atle.frenvik.sveen@geomatikk.no">atle.frenvik.sveen@geomatikk.no</a></pre>
</body>
</html>