Skip to content

Instantly share code, notes, and snippets.

@jensechu
Created October 26, 2009 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jensechu/218973 to your computer and use it in GitHub Desktop.
Save jensechu/218973 to your computer and use it in GitHub Desktop.
var fishLeft = $('.fish').css('left');
var fishTop = $('.fish').css('top');
function reset_kitty() {
$("#picture img").attr({ src: "images/kitty.png" });
$("#picture img").removeClass("eating");
$('.fish').css({top: fishTop,
left: fishLeft});
$('.fish').fadeIn("slow");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment