Mouse position display

I am new to programming and Im looking for a script that does the following. If you visit this website http://wearehunted.com/

If you move the mouse to the right, more data will open. Based on the position of the mouse left or right, more data has been detected. I tried to draw the source of the website, I could not figure it out. Any help would be helpful!

thank

+3
source share
2 answers

You can use this:

window.onmousemove = function(e){
    var e = e || event;
    var x = e.screenX;
    var y = e.screenY;
    //Do something
}
0
source

This is not a pagination script, just a simple slider. If you move the mouse to the left / right area, it scrolls in that direction.

jQuery http://media2.wearehunted.com/media/js/jquery.draggrid.js?v=21824

0

All Articles