Skip to content Skip to sidebar Skip to footer

How To Make An Object Appear Automatically Over And Over Again

I'm trying to create a game using Jquery however I do have a few problems, this is a major one that I would really appreciate help with. First of all here are my codes. Html: &l

Solution 1:

This isnt really working:

var element = "<div class='rand'></div>"
$(element).css('left',randPosX);
$("#spelplan").append(element);

cause element is just a string. May do this:

var element = $("<div class='rand'></div>").css('left',randPosX);
$("#spelplan").append(element);

Post a Comment for "How To Make An Object Appear Automatically Over And Over Again"