Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var i = 5;
- setInterval(function() {
- $('#ramka').append("<b class='XD' id=" + i + "></b>");
- var number = 0 + Math.floor(Math.random() * 480);
- var number2 = 0 + Math.floor(Math.random() * 480);
- $("#" + i).css({top: number, left: number2});
- setTimeout(function(){
- $("#" + i).remove();
- }, 5000);
- i += 1;
- }, 2000);
- $(".XD").click(function(){
- punkty += 1;
- (this).remove();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement