views:

22

answers:

1

My client has requested that they they want a football to follow the mouse on their site. Totally stupid if you ask me, but he's determined to get it done.

Problem is all the scripts I have found are old school and are not cross browser.

Does anyone know of a solution either in JavaScript or jQuery that will work in all the newest browsers?

+2  A: 

You can do this way with jquery:

$(document).mousemove(function(e){
// e.pageY;
// e.pageX;
});
Ionut Staicu
Ah wicked! Thanks for that.
James Jeffery