<div>Brent, </div>
<div>thanks for the help... the this.div.onmouseover = function(){&nbsp;alert(pd) } ; worked as planned. Unfortuneately, I can not get the callout box to work...I am using overLib.js, have already defined it in a tag in index.html
;</div>
<div>&lt;script type=&quot;text/javascript&quot; src=&quot;overlib/overlib.js&quot;&gt;&lt;/script&gt;</div>
<div>&nbsp;</div>
<div>here is the code for the kaXmlPoint, at the bottom is the onmouseover event attachment;</div>
<div>&nbsp;</div>
<div>function kaXmlPoint(pid, xml_overlay) {<br>&nbsp;this.xml_overlay = xml_overlay;<br>&nbsp;this.pid = pid;<br>&nbsp;this.divId = this.xml_overlay.getDivId(pid);<br>&nbsp;this.geox = 0;<br>&nbsp;this.geoy = 0;<br>&nbsp;this.shown = false;<br>&nbsp;<br>
&nbsp;this.graphics = new Array();<br>&nbsp;<br>&nbsp;this.div = document.createElement('div');<br>&nbsp;this.div.setAttribute('id', this.divId);<br>&nbsp;//this.div.onmouseover =&nbsp; function(){ alert(pd) };<br>&nbsp;this.div.onmouseover=function(){ overlib('This is an ordinary popup.');
<br>&nbsp;this.div.onmouseout=function(){ nd() };<br>}<br>&nbsp;</div>
<div>Thanks</div>
<div>-Sepehr<br>&nbsp;</div>
<div><span class="gmail_quote">On 3/3/06, <b class="gmail_sendername">Brent Pedersen</b> &lt;<a href="mailto:bpederse@gmail.com">bpederse@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="DIRECTION: ltr">hi, not sure about the workings of kaXML, but you probably need <br>this.onmouseover = function(){ alert(pid) }<br>or&nbsp; maybe <br>this.div.onmouseover = ...<br>-brent<br><br>
<div></div>
<div style="DIRECTION: ltr"><span class="e" id="q_109c0c764192a2c9_1"><span class="gmail_quote">On 3/3/06, <b class="gmail_sendername">Sepehr Sadeghi</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sadegs@alum.rpi.edu" target="_blank">
sadegs@alum.rpi.edu</a>&gt; wrote:</span></span></div>
<div style="DIRECTION: ltr">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"></blockquote></div>
<div style="DIRECTION: ltr"><span class="e" id="q_109c0c764192a2c9_3">
<div style="DIRECTION: ltr">
<div>Hello All,</div>
<div>I am trying to implement a way that when you mouseover a kaXmlPoint, it will display a &quot;tooltip&quot; or &quot;callout&quot;. </div>
<div>Typically you could could add a ONMOUSEOVER() in the html image tag, but since this is a javascript object its not straightforward. </div>
<div>&nbsp;</div>
<div>I tried adding a </div>
<div><em>&nbsp;this.onmouseover(alert(pid));</em></div>
<div>inside the <em>function kaXmlPoint(pid, xml_overlay) {</em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in&nbsp;the kaXmlOverlay.js file. That didn't work as expected!</div>
<div>&nbsp;</div>
<div>Does anyone have any suggestions?</div>
<div>&nbsp;</div>
<div>The other ways I was thinking of handling it was;</div>
<div>&nbsp;- on MOUSEMOVE() , compare mouse coords to each point's coords (not efficient)</div>
<div>&nbsp;- create a new event handler (KA_POINT_OVER); (not sure how that would work)</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>-Sepehr</div></div></span></div>
<div style="DIRECTION: ltr">
<div style="DIRECTION: ltr"><span></span></div>
<div style="DIRECTION: ltr"><span class="e" id="q_109c0c764192a2c9_5">
<div><br>-- <br><br><br><br>..:: Sepehr Sadeghi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;::..<br>..:: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sadegs@alum.rpi.edu" target="_blank">sadegs@alum.rpi.edu</a>&nbsp;&nbsp;::..<br>&nbsp;</div></span>
</div>
<div style="DIRECTION: ltr"></div><br>_______________________________________________<br>ka-Map-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ka-Map-users@lists.maptools.org" target="_blank">
ka-Map-users@lists.maptools.org </a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ka-map-users
</a><br><br><br>
<blockquote></blockquote></div><br>&nbsp;</div></blockquote></div><br><br clear="all"><br>-- <br><br><br><br>..:: Sepehr Sadeghi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;::..<br>..:: <a href="mailto:sadegs@alum.rpi.edu">sadegs@alum.rpi.edu</a>&nbsp;&nbsp;::..<br>..:: 603-205-4402&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;::..