CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Dynamic tooltips

Print topic Send  topic

Author Message
Rodj
Posted: 09/10/2005, 6:06 PM

Anyone been able dynamically assign the popup tooltip value. eg on mouseover to display the contents of a hidden field in the tooltip

Thanks!
DonB
Posted: 09/10/2005, 8:18 PM

Not a hidden field, but a Label control. When the Label is placed within a
<DIV id="ttip"> or <SPAN id="ttip">, the onmouseover event can alter the
style:

if (document.getElementById("ttip").style == 'None') {
document.getElementById("ttip").style="Display";
}
else {
document.getElementById("ttip").style="None";
}

This example is a rough approximation, take it as a place to start. Perhaps
you'd want to also deal with onmouseout or add a settimer() to turn the
tooltip off after a few seconds.

Of course, it is possible to place a Label in the HTML within some other tag
such as <TD> and assign it the value title="some tooltip text". Then the
browser will deal with creating and destroying the tooltip for you.

--
DonB

http://www.gotodon.com/ccbth


"Rodj" <Rodj@forum.codecharge> wrote in message
news:2432383102ade3@news.codecharge.com...
> Anyone been able dynamically assign the popup tooltip value. eg on
mouseover to
> display the contents of a hidden field in the tooltip
>
> Thanks!
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Rodj
Posted: 09/19/2005, 7:11 AM

Thanks - will give that a try
Walter Kempees
Posted: 09/19/2005, 2:20 PM

Learning by doing!
DonB
I again learned something! Thanks.
My approach would have been like Rodj to assign a text to a label/variable
and use it to fill the title= attribute used in almost every HTML table tag.
<td title="my tooltip"> something</td>

Walter
"Rodj" <Rodj@forum.codecharge> schreef in bericht
news:2432383102ade3@news.codecharge.com...
> Anyone been able dynamically assign the popup tooltip value. eg on
> mouseover to
> display the contents of a hidden field in the tooltip
>
> Thanks!
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.