<div>Works great now!!</div>
<div> </div>
<div>Here is the code in case anyone else would like to use it:</div>
<div>In file kaXmlOverlay.js around line 962, inside the function ;</div>
<div>kaXmlPoint(pid, xml_overlay) {</div>
<div> </div>
<div>//add these lines</div>
<div>this.div.onmouseover=function(){ overlib('This is the message', STICKY, CAPTION, 'Info' )};<br> this.div.onmouseout=function(){ nd() };<br>}<br> </div>
<div>/****************************************************/</div>
<div>I downloaded the overLib mouseover library from;</div>
<div>
<div><a href="https://sourceforge.net/project/showfiles.php?group_id=6218&package_id=6280&release_id=339422">https://sourceforge.net/project/showfiles.php?group_id=6218&package_id=6280&release_id=339422</a>
</div>
<div>(its a few .js files, so I put them in a folder called overlib)</div>
<div> </div></div>
<div>Inside the index.html, I added:</div>
<div><script type="text/javascript" src="overlib/overlib.js"></script></div>
<div> </div>
<div>Right after my <body> tag in index.html I added:</div>
<div><div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div></div>
<div>(I am not sure how necessary it is).</div>
<div> </div>
<div> </div>
<div>overLib has many more options, which you can read about at: </div>
<div><a href="http://www.bosrup.com/web/overlib/">http://www.bosrup.com/web/overlib/</a></div>
<div> </div>
<div> </div>
<div> </div>
<div>I have not tested this with the XML file, (have not gotten that working yet), but it *should* work, since it creates kaXmlPoint's as well.</div>
<div> </div>
<div>-sepehr</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </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, glad it worked. <br><br>you're missing a closing } for your onmouseover.</div>
<div style="DIRECTION: ltr"><span class="e" id="q_109c101b1b372735_1"><br><br>
<div><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>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div style="DIRECTION: ltr">
<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></div>
<div style="DIRECTION: ltr"><span>function kaXmlPoint(pid, xml_overlay) {<br></span></div>
<div style="DIRECTION: ltr"> 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>
<div style="DIRECTION: ltr"><span>
<div><span class="gmail_quote">On 3/3/06, <b class="gmail_sendername">Brent Pedersen</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:bpederse@gmail.com" target="_blank">bpederse@gmail.com</a>
> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 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><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>
<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>
<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></span></div>
<div style="DIRECTION: ltr"><span>-- <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>..:: 603-205-4402 ::.. </span></div></blockquote></div><br></span></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 ::..