Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Tooltip help

Make it working in Opera



8:10 pm on Jun 14, 2003 (gmt 0)

10+ Year Member


Would you mind helping me with this problem? ...
On this site:
<sorry, no links to personal work>

I'm using special tooltip library(You can see it if you mouseover the link above the picture with a girl). And my problem is, that this tooltip doesn't seem to work in Opera(I've tried 7.0.3).

If you look into the source of the js:
You will find out, that it's in Opera defaultly disabled:

function T(text){if(op¦¦!tltp)return;
op stays for Opera

If you delete the part of the condition(op¦¦), the tooltip is now in Opera displaying, but, there is another problem...
doesn't work.
so, let's have a look at the wH function:

function wH(e,h){if(l){Y=e.document;Y.write(h);Y.close();}if(e.innerHTML)e.innerHTML=h;}

there is the problem!
Probably Opera isn't able to change the text in the element with script, so it's only showing up the empty tooltip.

Can somebody help me with this?

Another problem is with the function sW:
function sW(e,w){if(l)e.clip.width=w;else if(op)e.style.pixelWidth=w;else e.style.width=w;}

if I set:
sW(tltp, 150);
in all browsers except Mozilla(esp. Phoenix) it is working, but in Phoenix it simply ignores this value.

Any ways to sort this out?

Thank you for your help and sorry for my English.

Info from another forum:
Actually, I don't need to use x tooltips on my site, I need only one...so maybe, there could be a way how to set the text in the tooltip without script mode(esp. without innerHTML <-- this could be the problem with Opera).

and I know about title attribute, but it isn't what I actually need. I need 0ms delay before displaying tooltip(title attrib. has some), I need "skinable" tooltip and undefinite display(title'll dissapear in a while)

[edited by: tedster at 2:23 am (utc) on June 15, 2003]


12:46 am on Jun 15, 2003 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Welcome to Webmaster World!

innerHTML doesn't work in Opera pre-7.



Featured Threads

Hot Threads This Week

Hot Threads This Month