title: how to implement mousemove while mouseDown pressed js
body: <p>I have to implement mouse move event only when mouse down is pressed.</p>
  
  <p>I need to execute "OK Moved" only when mouse down and mouse move.</p>
  
  <p>I used this code</p>
  
  <pre><code> $(".floor").mousedown(function() {
    $(".floor").bind('mouseover',function(){
        alert("OK Moved!");
    });
  })
  .mouseup(function() {
   $(".floor").unbind('mouseover');
  });
  </code></pre>