I am actually trying to use a custom cursor when dragover operation of HTML 5 Drag-drop API is happening, but I am not able to do override the default cursor when dragover event is triggered. Here is the code of how I try to achieve it,
$("#myDiv").live('mousedown', function(ev) {
$(this).css("cursor", "url(res/customCursor.cur), default !important");
});
Since the mouse would be pressed when dragover event is happening, I try to change cursor in mousedown event of the target of drag-drop. I also have tried to change the cursor in event handler of dragover event, but even that doesn't work.
!importantworks fine in a stylesheet, or an inline style (except IE6), but not when setting styles in JavaScript or jQuery. In that case, styles with!importantwon't get applied in Firefox, Chrome, and IE8 or earlier. - Matt Coughlin