8 var sh=document.querySelector('html').clientHeight;
9 var sw=document.querySelector('html').clientWidth;
11 var div=document.getElementsByTagName("div")[0];
13 if(parseInt(div.style.width.replace(/px/,''))-5<=0){
16 div.style.width=Math.abs(parseInt(div.style.width.replace(/px/,''))-5)+"px";
19 if(parseInt(div.style.width.replace(/px/,''))-5>=290){
24 div.style.width=Math.abs(parseInt(div.style.width.replace(/px/,''))+5)+"px";
33 <center><div onclick=""style="border-radius:50%;background-color:black;width:300px;height:300px;"></div></center>
34 <div onclick="" style="border-radius:50%;background-color:green;width:100px;height:100px;position:absolute;top:500px;left:500px"></div>
35 <div style="border-radius:50%;background-color:red;width:200px;height:200px;position:absolute;top:400px;left:900px"></div>
36 <div style="border-radius:50%;background-color:yellow;width:150px;height:150px;position:absolute;top:200px;left:300px"></div>
37 <div style="border-radius:50%;background-color:blue;width:50px;height:50px;position:absolute;top:200px;left:1000px"></div>
38 <div style="border-radius:50%;background-color:white;width:25px;height:25px;position:absolute;top:50px;left:70px"></div>
39 <div style="border-radius:50%;background-color:orange;width:250px;height:250px;position:absolute;top:500px;right:50px"></div>
53 var div=document.getElementsByTagName("div")[1];
54 var nettop=(parseInt(div.style.top.replace(/px/,''))+Math.floor(Math.random()*7)-3);
55 if(nettop>0&&nettop+100<sh){
56 div.style.top=nettop+"px";
58 var netleft=(parseInt(div.style.left.replace(/px/,''))+Math.floor(Math.random()*7)-3);
59 if(netleft>0&&netleft+100<sw){
60 div.style.left=netleft+"px";
62 setTimeout(clocklock,5);
65 var div=document.getElementsByTagName("div")[2];
67 div.style.left=parseInt(div.style.left.replace(/px/,''))+10+"px";
68 div.style.top=parseInt(div.style.top.replace(/px/,''))+10+"px";
69 div.style.width=parseInt(div.style.width.replace(/px/,''))-20+"px";
70 div.style.height=parseInt(div.style.height.replace(/px/,''))-20+"px";
73 div.style.left=parseInt(div.style.left.replace(/px/,''))-10+"px";
74 div.style.top=parseInt(div.style.top.replace(/px/,''))-10+"px";
75 div.style.width=parseInt(div.style.width.replace(/px/,''))+20+"px";
76 div.style.height=parseInt(div.style.height.replace(/px/,''))+20+"px";
82 var div=document.getElementsByTagName("div")[3];
83 if(Math.floor(Math.random()*21)===0){
84 dir=["up","down","left","right"][Math.floor(Math.random()*5)];
87 nettop=parseInt(div.style.top.replace(/px/,''))+5;
89 div.style.top=nettop+"px";
98 nettop=parseInt(div.style.top.replace(/px/,''))-5;
100 div.style.top=nettop+"px";
108 else if(dir==="right"){
109 nettop=parseInt(div.style.left.replace(/px/,''))-5;
111 div.style.left=nettop+"px";
119 else if(dir==="left"){
120 nettop=parseInt(div.style.left.replace(/px/,''))+5;
122 div.style.left=nettop+"px";
131 setTimeout(better,10);
134 var div=document.getElementsByTagName("div")[4];
138 if(Math.floor(Math.random()*rar)===0){
141 if(Math.floor(Math.random()*rar)===0){
144 netleft=parseInt(div.style.left.replace(/px/,''))+step*hdir;
145 nettop=parseInt(div.style.top.replace(/px/,''))+step*vdir;
146 if(netleft>0&&netleft+50<sw){
147 div.style.left=netleft+"px";
153 if(nettop>0&&nettop+50<sh){
154 div.style.top=nettop+"px";
168 var div=document.getElementsByTagName("div")[5];
171 netleft=parseInt(div.style.left.replace(/px/,''))+step*hdir2;
172 nettop=parseInt(div.style.top.replace(/px/,''))+step*vdir2;
173 if(netleft>0&&netleft+25<sw){
174 div.style.left=netleft+"px";
180 if(nettop>0&&nettop+25<sh){
181 div.style.top=nettop+"px";
196 quadraturDesKreises();
197 function quadraturDesKreises(){
198 var div=document.getElementsByTagName("div")[6];
200 var net=parseInt(div.style.borderRadius.replace(/%/,''))-step*isk;
201 div.style.borderRadius=net+"%";
202 if(net===0||net===100){
205 setTimeout(quadraturDesKreises,10);