Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>roXon</title>
<style>
#paper {
    position:absolute;
    width:100%;
    height:100%;
    cursor:crosshair;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
span.c{
    background:#faa;
    width:3px;
    height:3px;
    border-radius:3px;
    position:absolute;
}
  
</style>
</head>
<body>
    <div id="paper"></div>
  
</body>
</html>
 
var klik = false;
$('#paper').mousedown(function(){
    klik = true;
});
$(document).mouseup(function(){
    klik = false;
});
$('#paper').mousemove(function(e){
    if(klik === false){return;}
      var dr = $("<span class='c' />");
      dr.css({ top: e.clientY-2, left: e.clientX-2 });
        
     $("#paper").append(dr);
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers