Hi,
Normally I think it would look better if you make the tooltip yourself, i.e.
a layer which follows the mouse etc.

But if you prefer tooltips that's ok.
I'm not sure about using setBgImage AFAIK. (also check the faq on this)
You CAN use setHTML, or DynImage.
I put up an example of that here:

Richard_Examples
    Images_with_ALT.html
http://www.richardinfo.com/?menu=examples&node=1

Cheers,
Richard Bennett

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
Find the DynAPI faq here:
http://sourceforge.net/docman/display_doc.php?docid=656&group_id=5757
Browse the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi

----- Original Message -----
From: "Chris Lemon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 1:17 PM
Subject: [Dynapi-Help] (no subject)


> Has any one got any good methods for displaying tooltips for layers which
> contain just a background image.
>
> At the moment the best way I can think of is on a mouseover event to place
a
> transparent layer over the top of the image layer.  I then set the HTML of
> this new layer to an <IMG> tag with the src being a transparent gif.  I
then
> use the alt attribute of the img tag to get a tooltip to display.
>
> The problem I'm having is when I also try to pisk up on the click event
for
> the layer.  IE picks up this mouse click event with no problems but
Netscape
> seems to be slightly inconsistent.  Every now and then the click event
does
> not get called.  I am unable to see under what conditions the click event
is
> ignored.
>
> I have tried invoking the event from the tooltip layer but this doesn't
seem
> to alter the behaviour in Netscape.
>
> Does anyone have any other ideas/methods for showing tooltips but
retaining
> the event listening for the mouseup event in Netscape
>
> Thanks
>
> Chris
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
> ____________________________________________________________
> Get your free domain name and domain-based e-mail from
> Namezero.com. New!  Namezero Plus domains now available.
> Find out more at: http://www.namezero.com
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to