event mousedown and mouseup and mouseout actually do the same thing,
how to combine it?

$('a#cursor')
        .css({cursor: 'url(hand.cur), default'})
        .click(function() {
            return false;
        })
        .mousedown(function() {
            $(this).css({cursor: 'url(grab.cur), default'});
        })
        .mouseup(function() {
            $(this).css({cursor: 'url(hand.cur), default'});
        })
        .mouseout(function() {
            $(this).css({cursor: 'url(hand.cur), default'});
        });

Reply via email to