[jQuery] Re: get the current mouse position

2007-05-28 Thread Giant Jam Sandwich
This is one I'm using now. It gives you access to all the properties as a part of a "doc" object. The getMouseCoord function returns an array, with the X and Y calculated. $(function(){ doc = function(){ if (self.innerHeight) { doc.pageYOffset = self.pageYOffset; doc.p

[jQuery] Re: get the current mouse position

2007-05-27 Thread Alexandre Plennevaux
did u try cluetip? HYPERLINK "http://examples.learningjquery.com/62/"http://examples.learningjquery.com/6 2/ _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Petri Sent: dimanche 27 mai 2007 12:08 To: jQuery (English) Subject: [jQuery] get the current m

[jQuery] Re: get the current mouse position

2007-05-27 Thread andycjw
i am not sure whether jquery has this or not you can check out these articles that explains how to check the mouse position with just javascript (without jquery) http://www.quirksmode.org/js/events_properties.html#position http://www.quirksmode.org/dom/w3c_events.html#mousepos hope this helps O

[jQuery] Re: get the current mouse position

2007-05-27 Thread Karl Swedberg
Hi Alexander, This one is really tricky in plain JavaScript because of all the different browser implementations, but fortunately jQuery smoothes out the inconsistencies. Just add the "event" arg inside a mouse event handler's anon. function and then refer to the coordinates as event.page