In the new version of the drag and drop events, which will be released
soon, this is supported by looking at the drop target event property
within the "drag" handler. That way you can determine as often as
every mousemove, which drop targets are active at any time. To make it
work in the current version, as Sahab suggested, you can use a custom
tolerate function, but this is pretty complex. I think it is much
easier to accomplish using closures and your own custom event, kind of
like this:
// hold the active drop targets
var $active = $([]);
// bind drop event handlers
$('table td')
.bind("dropstart",function(){
$active = $active.add( this );
$( this ).addClass("active");
})
.bind("dropend",function(){
$active = $active.not( this );
$( this ).removeClass("active");
})
.bind("drop dragover",function( ev ){
$('#log').append('<li>"'+ ev.type +'" #'+ $( this ).text() +'</
li>').scrollTop(9e5);
});
// bind drag event handlers
$('.drag')
.bind("drag",function( ev ){
$active.triggerHandler("dragover");
$( this ).css({
top: ev.offsetY,
left: ev.offsetX
});
});
http://jsbin.com/iheja3