Sitenizde uçuşan yapraklar olsun istiyorsanız bu script'i kullanabilirsiniz. Yapmanız gereken </head> kodunu bulup, hemen üstüne aşağıdaki kodları kopyalayıp yapıştırmak.
<script language="JavaScript1.2"> //<![CDATA[ grphcs=Array(6);Image0=new Image;Image0.src=grphcs[0]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg87HnktdEPdlPqAmloPmTMddBprvgQTjwy2pPz4-qxpLYGA1Y_8Z9tvilsBNq49v0ITcJeN6B0evDbjHNeV3KvkNhCkZUMSSJUVTgslQPU2bo_VlODWdR2M9RziTSlqOH6YimUNTBzj5uY/s1600/barg.gif";Image1=new Image;Image1.src=grphcs[1]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg87HnktdEPdlPqAmloPmTMddBprvgQTjwy2pPz4-qxpLYGA1Y_8Z9tvilsBNq49v0ITcJeN6B0evDbjHNeV3KvkNhCkZUMSSJUVTgslQPU2bo_VlODWdR2M9RziTSlqOH6YimUNTBzj5uY/s1600/barg.gif";Image2=new Image;Image2.src=grphcs[2]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg87HnktdEPdlPqAmloPmTMddBprvgQTjwy2pPz4-qxpLYGA1Y_8Z9tvilsBNq49v0ITcJeN6B0evDbjHNeV3KvkNhCkZUMSSJUVTgslQPU2bo_VlODWdR2M9RziTSlqOH6YimUNTBzj5uY/s1600/barg.gif";Image3=new Image;Image3.src=grphcs[3]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg87HnktdEPdlPqAmloPmTMddBprvgQTjwy2pPz4-qxpLYGA1Y_8Z9tvilsBNq49v0ITcJeN6B0evDbjHNeV3KvkNhCkZUMSSJUVTgslQPU2bo_VlODWdR2M9RziTSlqOH6YimUNTBzj5uY/s1600/barg.gif";Image4=new Image;Image4.src=grphcs[4]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg87HnktdEPdlPqAmloPmTMddBprvgQTjwy2pPz4-qxpLYGA1Y_8Z9tvilsBNq49v0ITcJeN6B0evDbjHNeV3KvkNhCkZUMSSJUVTgslQPU2bo_VlODWdR2M9RziTSlqOH6YimUNTBzj5uY/s1600/barg.gif";Image5=new Image;Image5.src=grphcs[5]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg87HnktdEPdlPqAmloPmTMddBprvgQTjwy2pPz4-qxpLYGA1Y_8Z9tvilsBNq49v0ITcJeN6B0evDbjHNeV3KvkNhCkZUMSSJUVTgslQPU2bo_VlODWdR2M9RziTSlqOH6YimUNTBzj5uY/s1600/barg.gif"; Amount=8;Ypos=[];Xpos=[];Speed=[];Step=[];Cstep=[];ns=document.layers?1:0;ns6=document.getElementById&&!document.all?1:0; if(ns)for(i=0;i<Amount;i++){var P=Math.floor(Math.random()*grphcs.length);rndPic=grphcs[P];document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+rndPic+"></LAYER>")}else{document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');for(i=0;i<Amount;i++)P=Math.floor(Math.random()*grphcs.length),rndPic=grphcs[P],document.write('<img id="si'+i+'" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">');document.write("</div></div>")} WinHeight=ns||ns6?window.innerHeight:window.document.body.clientHeight;WinWidth=ns||ns6?window.innerWidth-70:window.document.body.clientWidth;for(i=0;i<Amount;i++)Ypos[i]=Math.round(Math.random()*WinHeight),Xpos[i]=Math.round(Math.random()*WinWidth),Speed[i]=5*Math.random()+3,Cstep[i]=0,Step[i]=.1*Math.random()+.05; function fall(){var c=ns||ns6?window.innerHeight:window.document.body.clientHeight,b=ns||ns6?window.innerWidth-70:window.document.body.clientWidth,a=ns||ns6?window.pageYOffset:document.body.scrollTop;for(i=0;i<Amount;i++)sy=Speed[i]*Math.sin(90*Math.PI/180),sx=Speed[i]*Math.cos(Cstep[i]),Ypos[i]+=sy,Xpos[i]+=sx,Ypos[i]>c&&(Ypos[i]=-60,Xpos[i]=Math.round(Math.random()*b),Speed[i]=5*Math.random()+3),ns?(document.layers["sn"+i].left=Xpos[i],document.layers["sn"+i].top=Ypos[i]+a):ns6?(document.getElementById("si"+ i).style.left=Math.min(b,Xpos[i]),document.getElementById("si"+i).style.top=Ypos[i]+a):(eval("document.all.si"+i).style.left=Xpos[i],eval("document.all.si"+i).style.top=Ypos[i]+a),Cstep[i]+=Step[i];setTimeout("fall()",20)}window.onload=fall; //]]> </script>
Kodu denemek için Online html editor'ü kullanabilirsiniz.
Yorum Gönder
Lütfen yalnızca yazı ile ilgili yorumlar yazın. Yazının konusu dışında iletmek veya sormak istediğiniz bir şey varsa iletişim formunu kullanın. Ve lütfen yorumlara tıklanabilir link yazmayın!