<marquee>Я принимаю только image/jpeg <img src="http://javascript.ru/forum/images/smilies/wink.gif" /></marquee>
<script>
document.addEventListener('dragover', function(e) {
var dataTransfer = e.dataTransfer;
var accept = Array.prototype.some.call(dataTransfer.items, function(item){
return item.kind == 'file' && item.type == 'image/jpeg';
});
dataTransfer.dropEffect = accept ? 'copy' : 'none';
e.preventDefault();
});
</script>