||View All MessagesBack to WebFX|
You could do something like this:
Change event.clientX and event.clientY to
(event.clientX+document.body.scrollLeft) and (event.clientY+document.body.scrollTop)
I think that will solve your problem.
-Mike (a 12 year old)
Sent: October 22, 2000
Subject: Re:ToolTip Errors
I was testing out some of the examples to see how they work and ran into a problem I have run into before and havent been able to fix.
When you use the tooltips demo and scroll the screen down a little bit, then try to rollover somewhere where a tooltip should be, the tooltip is shown relative to the absolute position of the screen. So the tooltip may not be visible because it is at the top of the screen. I ran into this before when using , I think this was it, clientx and clienty.
I was working on building a context menu when someone right clicked on something, but once they scrolled the screen, the positioning went hay wire. Anyone know how to fix something like that?