homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Browsers / Opera Browser Usage and Support
Forum Library, Charter, Moderator: open

Opera Browser Usage and Support Forum

Tooltip help
Make it working in Opera

10+ Year Member

Msg#: 156 posted 8:10 pm on Jun 14, 2003 (gmt 0)


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]



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

Msg#: 156 posted 12:46 am on Jun 15, 2003 (gmt 0)

Welcome to Webmaster World!

innerHTML doesn't work in Opera pre-7.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Browsers / Opera Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved