i am using JQUERY SLIDE EFFECTS
and i can't seem to get this to work how i want it to.
Basically i want to get the image to swap back to "bear.gif" when the effect has finished.
Here is my code...
$(window).load(function() {
$('#slider').nivoSlider();
//polar bear menu action :)
$("#logo").toggle(function(){
$("#polarbear a img").attr('src','images/polarbearcub.gif');
$("#menu").show('slide', {direction: 'left'}, 3000);
//after animation is complete i want to change polarbear image src back to images/bear.gif
$("#polarbear a img").attr('src','images/bear.gif');
},function(){
$("#polarbear a img").attr('src','images/polarbearcub.gif');
$("#menu").hide('slide', {direction: 'left'}, 3000);
});
});

Help












