View Full Version : Mouse coordinates relative to inside a DIV
ZephyrWest
June 26th, 2007, 07:24 PM
Does anybody know of a good Javascript library that I can use to grab the coordinates of the mouse relative to the the top-left corner of a DIV? I've seen it done before and I have been searching around, but haven't found anything yet.
Thanks :kommie:
simplistik
June 26th, 2007, 08:32 PM
most javascript libraries have a tooltip function, most of which track your mouse inside a specified element. you may have to do a little deciphering but i'm sure it can be extracted and used to whatever you want.
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.