Simple question, i have this DIV right, 400 * 250 px. And i have this image, fooi.png.
How can i make fooi.png randomly appear somewhere inside that div (and it doesn’t remove the other images that already have been appeared) every 2 seconds?
Edit:
What i’ve got:
function placeimage(){
$('#div').append('<img src="fooi.png" alt="image" id="'. Math.floor(Math.random()*55) .'" onclick="doclick(this.id);">');
setTimeout(placeimage, 2000);
}
placeimage();
Write some css first
and javascript some how like this below