<body onmousemove="mover(document.getElementById('capa'), event);"> <div id="capa" onclick="activar();"></div> </body>