ok, i tried this and this works fairly. but another question is:
can i change the state AFTER the animate() is finished?
(there are still some problem when i touch certain points while
sliding)


$(function(){

        var state = 0;

        $('#navigation').mouseover(
        function() { if(state == 0) {$(this).animate({left: '0'},
'slow'); state = 1;}}
    );

        $('#navigation').mouseout(
        function() { if(state == 1) {$(this).animate({left: '-210'},
'slow'); state = 0;}}
    );

});

Reply via email to