Hi Abel,

I think it's more of a problem as to when the browsers update the
appropriate DOM elements that determine the user's current mouse
position (e.g. pageX / pageY and clientX / clientY). We can use jQuery
(or really just POJS) to trigger code that runs when a document is
loaded, but if these DOM elements aren't initialized, they'll always
return 0.

- Gavin

On Feb 27, 6:50 pm, Abel K <[email protected]> wrote:
> I am sorry, I am very new at the entire jQuery thing, but isn't there a
> ready() function that could trigger the mouse cursor position? In Flash,
> this would not even be a thing to be thinking about, let alone an
> cross-browser compatibility issue...
>
> Cordially,
> Abel K.www.worldkit.com
>
> On Fri, Feb 27, 2009 at 6:42 PM, Andrea Giammarchi <
>
> [email protected]> wrote:
> > I bet is the classic banner, spot, or JS effect to attach to the mouse and
> > somebody asked him why it is not attached since the beginning ... well,
> > Marcus, if it is the case tell them that the browser is inside a window and
> > if the user is not interacting with that window there's nothing you can do
> > via web except create a plugin to download, even more disturbing ;-)
>
> > In every other case, I am curios as well .... but thanks to this issue I
> > discovered that onmouseover in internet explorer isfired ONLY if the
> > document.body is already present in the DOM, somwthing that could be useful
> > for the doScroll interception as well (since Diego is reading this post)
>
> > On Fri, Feb 27, 2009 at 11:13 PM, d3r1v3d (Gavin Mulligan) <
> > [email protected]> wrote:
>
> >> Just out of curiosity, Marcus, I would be interested to know why you
> >> want to know the user's mouse position before they move it. Maybe
> >> there's a better solution that'll fit snugly within the scope of your
> >> requirements.
>
> >> - Gavin
>
> >> On Feb 27, 12:02 pm, unwiredbrain <[email protected]> wrote:
> >> > 2009/2/27 d3r1v3d (Gavin Mulligan) <[email protected]>:
>
> >> > > You're right, it does seem to work in IE 7. However, it still fails to
> >> > > work in Firefox and Chrome...
>
> >> > Both methods suggested by Andrea Giammarchi are working properly on my
> >> > box -- Firefox 3.0.6, Linux.
>
> >> > I wonder if it's just a Windows' window focus management issue...
> >> > Mac OS X testing anyone?
>
> >> > Hope that helps
> >> > --
> >> > unwiredbrain
> >> > Linux user #437712
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to