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(&quot;OpenLayers.&quot;, &quot;&quot;).replace(&quot;Control.&quot;,&quot;&quot;);<br>var title = null;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>if (ctrlName == &quot;ZoomBox&quot;) {
<br>&nbsp; title = &quot;Zoom to Location&quot;;<br>};<br>if (title != null) {<br>&nbsp; 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>&nbsp;</div>
<div>My understanding is that this title attribute is only good in IE.</div>
<div>&nbsp;</div>
<div>Linda Rawson<br></div>
<div class="gmail_quote">On Jan 21, 2008 2:33 PM, Gregor Mosheh &lt;<a href="mailto:gregor@hostgis.com">gregor@hostgis.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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 &quot;this.div.title = &#39;Pan the map&#39;&quot; in<br>initialize() but to no avail.
<br><br>Is this non-trivial to do? Is a &#39;title&#39; 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 &amp; hosting services<br><a href="http://www.hostgis.com/" target="_blank">http://www.HostGIS.com/</a><br><br>&quot;Remember that no one cares if you can back up,<br>&nbsp;only if you can restore.&quot; - AMANDA
<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></blockquote></div><br><br clear="all"><br>-- <br>Linda Rawson