<div>Brent, </div>
<div>thanks for the help... the this.div.onmouseover = function(){ 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><script type="text/javascript" src="overlib/overlib.js"></script></div>
<div> </div>
<div>here is the code for the kaXmlPoint, at the bottom is the onmouseover event attachment;</div>
<div> </div>
<div>function kaXmlPoint(pid, xml_overlay) {<br> this.xml_overlay = xml_overlay;<br> this.pid = pid;<br> this.divId = this.xml_overlay.getDivId(pid);<br> this.geox = 0;<br> this.geoy = 0;<br> this.shown = false;<br> <br>
this.graphics = new Array();<br> <br> this.div = document.createElement('div');<br> this.div.setAttribute('id', this.divId);<br> //this.div.onmouseover = function(){ alert(pd) };<br> this.div.onmouseover=function(){ overlib('This is an ordinary popup.');
<br> this.div.onmouseout=function(){ nd() };<br>}<br> </div>
<div>Thanks</div>
<div>-Sepehr<br> </div>
<div><span class="gmail_quote">On 3/3/06, <b class="gmail_sendername">Brent Pedersen</b> <<a href="mailto:bpederse@gmail.com">bpederse@gmail.com</a>> 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 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> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sadegs@alum.rpi.edu" target="_blank">
sadegs@alum.rpi.edu</a>> 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 "tooltip" or "callout". </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> </div>
<div>I tried adding a </div>
<div><em> this.onmouseover(alert(pid));</em></div>
<div>inside the <em>function kaXmlPoint(pid, xml_overlay) {</em> in the kaXmlOverlay.js file. That didn't work as expected!</div>
<div> </div>
<div>Does anyone have any suggestions?</div>
<div> </div>
<div>The other ways I was thinking of handling it was;</div>
<div> - on MOUSEMOVE() , compare mouse coords to each point's coords (not efficient)</div>
<div> - create a new event handler (KA_POINT_OVER); (not sure how that would work)</div>
<div> </div>
<div> </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 ::..<br>..:: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sadegs@alum.rpi.edu" target="_blank">sadegs@alum.rpi.edu</a> ::..<br> </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> </div></blockquote></div><br><br clear="all"><br>-- <br><br><br><br>..:: Sepehr Sadeghi ::..<br>..:: <a href="mailto:sadegs@alum.rpi.edu">sadegs@alum.rpi.edu</a> ::..<br>..:: 603-205-4402 ::..