var dedeabc=1 function fishaa(){ dedeabc++ var acbb=(Math.floor(Math.random()*lvaccd)+1) if(Math.random()>0.5){ $(".gamestt").append("<img src='img/fish"+acbb+".png' class='abccaae"+dedeabc+"' style='position:absolute;left:100%;top:"+(10+(Math.random()*70))+"%' οnmοuseοver='abcyu(this,"+acbb+")'>") $(".abccaae"+dedeabc).animate({left:"-126px"},(Math.random()*8000)+2000,"linear",function(){ $(this).remove() }) }else{ $(".gamestt").append("<img src='img/fish"+acbb+".png' class='abccaae"+dedeabc+" rightsty' style='position:absolute;right:100%;top:"+(10+(Math.random()*70))+"%' οnmοuseοver='abcyu(this,"+acbb+")'>") $(".abccaae"+dedeabc).animate({right:"-126px"},(Math.random()*8000)+2000,"linear",function(){ $(this).remove() }) } }
计算分数吃到小鱼的个数
最新推荐文章于 2024-05-29 12:06:06 发布