I am pretty sure that 'title' works in both IE and FireFox. It seems like for quite a while, people were using the 'alt' tags for this purpose. They only show mouse-over text in IE. <br><br>David.<br><br>
<div class="gmail_quote">On Jan 21, 2008 4:16 PM, Linda Rawson <<a href="mailto:linda.rawson@gmail.com">linda.rawson@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I did this in the <font size="2">
<p>redraw:</p>
<div></div></font>method of the panel.js itself with the following lines but it is a total hack and only for my application:<font size="2"><font color="#0000ff" size="2"></font>
<p><font size="2"></font></p>
<div></div></font>var ctrlName = this.controls[i].CLASS_NAME.replace("OpenLayers.", "").replace("Control.","");<br>var title = null;<br> <br>if (ctrlName == "ZoomBox") {
<br> title = "Zoom to Location";<br>};<br>if (title != null) {<br> element.title = title;<br>}<br>this.div.appendChild(element);<br>
<div>A title would be great as well as the ability to hide/show a control.</div>
<div> </div>
<div>My understanding is that this title attribute is only good in IE.</div>
<div> </div>
<div>Linda Rawson<br></div><div><div></div><div class="Wj3C7c">
<div class="gmail_quote">On Jan 21, 2008 2:33 PM, Gregor Mosheh <<a href="mailto:gregor@hostgis.com" target="_blank">gregor@hostgis.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">This one sounded easer than it turned out to be. :)<br><br>HTML elements can have a title attribute, and most browsers will show
<br>that text when the mouse hovers over the element.<br><br>How may I apply this to OL Controls? I tried a few of the more obvious<br>approaches, such as adding "this.div.title = 'Pan the map'" in<br>initialize() but to no avail.
<br><br>Is this non-trivial to do? Is a 'title' param something that would be<br>useful to add to Control itself for making a general solution to this?<br><br>--<br>Gregor Mosheh / Greg Allensworth, BS, A+<br>System Administrator
<br>HostGIS cartographic development & hosting services<br><a href="http://www.hostgis.com/" target="_blank">http://www.HostGIS.com/</a><br><br>"Remember that no one cares if you can back up,<br> only if you can restore." - AMANDA
<br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">
http://openlayers.org/mailman/listinfo/users
</a><br></blockquote></div><br><br clear="all"><br></div></div>-- <br><font color="#888888">Linda Rawson
</font><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">
http://openlayers.org/mailman/listinfo/users</a><br><br></blockquote></div><br>