Skip to content

Instantly share code, notes, and snippets.

@k1LoW
Created July 31, 2009 00:15
Show Gist options
  • Save k1LoW/159005 to your computer and use it in GitHub Desktop.
Save k1LoW/159005 to your computer and use it in GitHub Desktop.
/**
* TechTouch #0b101
*
*/
$(function(){
for (var i = 0; i < 1000; i++ ) {
$('body').append($('<div>').css({backgroundColor:'#' + Math.floor(Math.random() * Math.pow(16,6)).toString(16),
top:Math.random()* 300,
left:Math.random()* 500,
width:'100px',
height:'100px',
position:'absolute'})
);
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment