console
var hair_up = document.getElementById('cross-up'),hair_down = document.getElementById('cross-down');
document.addEventListener('mousemove', function(event) {
hair_up.style.left = (event.clientX-hair_up.clientWidth) + 'px';
hair_up.style.top = (event.clientY-hair_up.clientHeight) + 'px';
hair_down.style.left = event.clientX + 'px';
hair_down.style.top = event.clientY + 'px';
hair_down.innerHTML='x:'+event.clientX+'<br>y:'+event.clientY;
});
<div id="cross-up" class="crosshair hair-up"></div>
<div id="cross-down" class="crosshair hair-down"></div>
body, html { height: 100%; margin: 0; overflow: hidden; }
.crosshair {
position: absolute;
width: 55px;
height: 55px;
background-color: transparent;
pointer-events: none;
z-index: 1000;
}
.hair-up{
left: -55px;
top: -55px;
border-right: 1px dashed red;
border-bottom: 1px dashed red;
}
.hair-down{
border-left: 1px dashed red;
border-top: 1px dashed red;
}