PDA

View Full Version : Quicktips with an image in an anchor doesn't work?



steven
30 Mar 2007, 8:49 PM
I am trying to get quick tips to appear on an image within an anchor tag but I can't seem to get it to work.

I have tried (testing in Firefox):


some text (#)


folder.png (#)


folder.png (#)


In the first example with text the tips work fine.
In the second example the standard Firefox tooltip appears.
In the third example the quicktip appears but the width is too small to fit the text.

Is this a bug or am I going about this the wrong way?
Thanks.

steven
30 Mar 2007, 8:54 PM
A solution of sorts I have is to add:

if(t.tagName == 'IMG') {
t = t.parentNode;
}

to the onOver and onOut functions