In my site there is a div which shows up if you drag something into the browser and disappears if you dropped it.
function startDraghandler() {
$("*").on("dragover", function(event) {
$("*").off("dragover");
$("#uploadbox").animate({bottom:"+=360px"}, 250);
$("*").on("mouseover", function() {
$("#uploadbox").animate({bottom:"-=360px"}, 250);
$("*").off("mouseover");
startDraghandler();
})
});
}
But I don't want the div to show up if you dragged something from the site itself, only when it's coming from outside the browser. If you drag an element from the site, I want something different to happen. But I don't know how to do this, because all I've found on the internet is how to get the type of the dragged element when it's dropped.
Thanks for your help