Is there a better way to capture mouse
So I am capturing the mouse X and Y positions like this:
My question is; Is there a better way to capture the mouse position other than constantly listening for the mouse move? Can I add the mouseMove listener to the link in question?
There is a library for tooltips called "overLib" that you can set it so that the tooltip follows the mouse around. Much simpler.
i find it more consistent to inject the tooptip next to the link, so that they share a parent.
i can then use simple relative positioning CSS to show the tip.
with absolute positioning, you have to wrorry about scrolling, zoom, container display mode, and edge of viewport issues, but with simple toggled sibling content, it's magically in the right place every time.
|All times are GMT +1. The time now is 01:11 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.