window.onload = function() { document.onmousemove = function(ev) { var y = -ev.clientY / 8; document.body.style.backgroundPosition = y + 'px'; }; };