document.getElementById('idCapa').style.left = x + 'px'; document.getElementById('idCapa').style.top = y + 'px';