elemento.style.left = parseInt(elemento.style.left) + x + 'px'; elemento.style.top = parseInt(elemento.style.top) + y + 'px';