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
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
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
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
4 matches
Mail list logo