The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript I need explanation on Jquery Snippet

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #201368

    I had a problem, I had a div with a class of .grid with a couple of images in it and wanted to right click on one image to make a bigger one appear and then with a mousemove event make that image fallow my cursor finally with a mouseleave event when I switched image, the bigger image would leave.

    I tried using pageX and pageY events to determine the possition of the bigger image but the image would appear like almost a 1000 pixel further to the right.

    I finally found a solution here on css-tricks (, it works, but I don’t know why. There is no explanations. I was wondering if you could explain to me why this work and why do you need to do this in order for pageX and pageY to work.


Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.