redcrazykid
Member
Code:
<html>
<head>
<title>NTD</title>
<style>
BODY { font-family: Verdana; font-size: 11px; color: #000; }
</style>
</head>
<body>
<script>
try {
v2 = new Array();
v3 = 0;
v5 = 0;
v10 = 0;
function addthirdrecording(v8) {
v9 = document.createElement('div');
v9.style.background = '#00FF00';
v9.style.width = '4px';
v9.style.height = '4px';
v9.id = '9' + document.getElementById(v8);
v9.style.overflow = 'hidden';
v9.style.position = 'absolute';
v9.style.left = document.getElementById(v8).style.left;
v9.style.top = document.getElementById(v8).style.top;
document.body.appendChild(v9);
}
function createnewbox() {
v3++;
v1 = document.createElement('div');
v1.style.background = '#000';
v1.style.width = '4px';
v1.style.height = '4px';
v1.id = 'd' + v3;
v1.style.overflow = 'hidden';
v1.style.position = 'absolute';
v1.style.left = Math.floor(Math.random() * 1000) + 'px';
v1.style.top = Math.floor(Math.random() * 1000) + 'px';
document.body.appendChild(v1);
}
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
createnewbox();
function movenewbox() {
v5++;
v4 = document.getElementById('d' + v5);
if(!v4) {
v5 = 1;
v4 = document.getElementById('d' + v5);
}
v6 = (Math.floor(v4.style.top.split('px')[0]) + Math.floor(Math.random() * 2));
v7 = (Math.floor(v4.style.left.split('px')[0]) + Math.floor(Math.random() * 2));
v4.style.left = v7; + 'px';
v4.style.top = v6 + 'px';
if(v6 || v7 > 1000) {
addthirdrecording(v4.id);
document.body.removeChild(document.getElementById(v4.id));
createnewbox();
}
setTimeout('movenewbox();', 0);
}
movenewbox();
}
catch(errmsg) {
alert(errmsg);
}
</script>
</body>
</html>