I want to display an image under the mouse (a finger to simulate a touch screen) when a mousedown event occurs and hide it when the mouseup event occurs, but when I do this,
You can do this
$(document).bind('mousedown mouseup', function() { $('.finger').toggle(); });