') .appendTo('body') .css('position', 'absolute') .css(newPos()) .each(function() { $(this).animate(newPos(), 1500, arguments.callee); }); } $('img').click(function() { $(this).stop().animate({width:'0px',height:'0px'},200); var t = (new Date().getTime() - st) / 1000; if (++count >= NUM) { $(".msg").html(""); $(".Complete").text('ゲームクリア! 所要時間:' + t + '秒'); $("#game").css({background:"url(/wp-content/themes/doukouin/images/game_back_title.gif) no-repeat",width:"680px",height:"500px"}) } }); return false; }); });