lurch99
Posts: 47
|
| Posted: 11/17/2004, 9:21 PM |
|
Hi Folks,
Does anyone know how to make it so when the mouse goes over a piece of text (or a graphic) a small bubble floats above it with some text?
Many thanks in advance,
Lurch
|
 |
 |
mrachow
Posts: 509
|
| Posted: 11/17/2004, 11:36 PM |
|
Try the title property of the corresponding HTML tag!?
Reagrds,
Michael
_________________
Best regards,
Michael |
 |
 |
E43509
Posts: 283
|
| Posted: 11/18/2004, 2:21 AM |
|
I believe that images use the HTML tags within an alt attribute for the tool tips.
|
 |
 |
Wendy
|
| Posted: 11/18/2004, 2:58 AM |
|
Google for 'overlib'
It does everything and more.
|
|
|
 |
DonB
|
| Posted: 11/18/2004, 6:35 AM |
|
Overlib is pretty nice, but may be overkill. I tried it on http://www.gotodon.com. It's extremely easy to implement, but is a
javascript-based solution (i.e., may not work for everyone because some
people turn off javascript). You can see everything needed to make it work
by viewing the source of the link I provided.
The "alt" tag is (from what I've read) fairly spotty in it's implementation.
The "title" tag seems the best choice in my experience. I either put a
label in my page (then move the "{Label1}" tag into the appropriate place
for the popup (AKA "tooltip") or I just type in a tag directly such as
"{tooltip}"
Then either set the Label "Value" property in the Before Show event:
ASP: Label1.Value = "title='" &Value & "'"
PHP: $Label1->SetValue( "title='" . $Label1->GetValue() . "'");
or use the template object's SetVar method:
ASP: Tpl.SetVar "tooltip", ""title='" &Value & "'"
PHP: $Tpl->SetVar("tooltip", ""title='" .Value . "'");
--
DonB
http://www.gotodon.com/ccbth
"Wendy" <Wendy@forum.codecharge> wrote in message
news:2419c803853936@news.codecharge.com...
> Google for 'overlib'
> It does everything and more.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
lurch99
Posts: 47
|
| Posted: 11/18/2004, 7:42 PM |
|
Don,
That is EXACTLY what I was after, thanks!
OverLIB is awesome!
Lurch
|
 |
 |
|