Jump to content
Aplicatiile pentru functia de "Helper" pentru serverul de Minecraft sunt deschise !
Sign in to follow this  
Guest Alex

Scrip Ninsoare/zapada Pe Forum

Recommended Posts

Guest Alex

Functioneaza doar cu Internet Explorer !

<script>// seteaza numarul de fulgi (nu se recomanda mai mult de 30-40)var snowmax=25[/color][color=#77736F]// seteaza culorile fulgilor.Puteti adauga cate culori vretivar snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD")[/color][color=#77736F]// seteaza fonturile pentru fulgi. Si aici puteti adauga si alte fonturi daca vretivar snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")[/color][color=#77736F]// seteaza caracterul pentru fulgi (recomandat: *)var snowletter="*"[/color][color=#77736F]// seteaza viteza de cadere a fulgilor (valori recomandate: intre 0.3 to 2)var sinkspeed=0.12[/color][color=#77736F]// seteaza dimensiunea maxima a fulgilorvar snowmaxsize=50[/color][color=#77736F]// seteaza dimensiunea minima a fulgilorvar snowminsize=20[/color][color=#77736F]// seteaza zona de cadere a fulgilor// 1 pentru cadere peste tot, 2 pentru stanga a ecranului// 3 pentru centru, 4 pentru dreapta ecranuluivar snowingzone=1[/color][color=#77736F]///////////////////////////////////////////////////////////////////////////// AICI SE TERMINA PARTEA DE CONFIGURARE///////////////////////////////////////////////////////////////////////////[/color][color=#77736F]// NU EDITATI ACESTE VALORI DE MAI JOSvar snow=new Array()var marginbottomvar marginrightvar timervar i_snow=0var x_mv=new Array();var crds=new Array();var lftrght=new Array();var browserinfos=navigator.userAgentvar ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)var ns6=document.getElementById&&!document.allvar opera=browserinfos.match(/Opera/)var browserok=ie5||ns6||opera[/color][color=#77736F]function randommaker(range) {rand=Math.floor(range*Math.random())return rand}[/color][color=#77736F]function initsnow() {if (ie5 || opera) {marginbottom = document.body.clientHeightmarginright = document.body.clientWidth}else if (ns6) {marginbottom = window.innerHeightmarginright = window.innerWidth}var snowsizerange=snowmaxsize-snowminsizefor (i=0;i<=snowmax;i++) {crds[i] = 0;lftrght[i] = Math.random()*15;x_mv[i] = 0.03 + Math.random()/10;snow[i]=document.getElementById("s"+i)snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]snow[i].size=randommaker(snowsizerange)+snowminsizesnow[i].style.fontSize=snow[i].sizesnow[i].style.color=snowcolor[randommaker(snowcolor.length)]snow[i].sink=sinkspeed*snow[i].size/5if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size)snow[i].style.left=snow[i].posxsnow[i].style.top=snow[i].posy}movesnow()}[/color][color=#77736F]function movesnow() {for (i=0;i<=snowmax;i++) {crds[i] += x_mv[i];snow[i].posy+=snow[i].sinksnow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]);snow[i].style.top=snow[i].posy[/color][color=#77736F]if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}snow[i].posy=0}}var timer=setTimeout("movesnow()",50)}[/color][color=#77736F]for (i=0;i<=snowmax;i++) {document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")}if (browserok) {window.onload=initsnow}</script>
<!--Simply copy and paste into <BODY>    Just above the </BODY> tag. -->[/color][color=#77736F]<script type="text/javascript">/*Snow Fall Java scriptVisit http://rainbow.arch.scriptmania.com/scripts/  for this script and many more*/[/color][color=#77736F]//Pre-loads your image/s below//Configure below - change URL path to the snow image[/color][color=#77736F]grphcs=new Array(6)Image0=new Image();Image0.src=grphcs[0]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif";Image1=new Image();Image1.src=grphcs[1]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif"Image2=new Image();Image2.src=grphcs[2]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif"Image3=new Image();Image3.src=grphcs[3]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif"Image4=new Image();Image4.src=grphcs[4]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif"Image5=new Image();Image5.src=grphcs[5]="http://rainbow.arch.scriptmania.com/scripts/bg/snowflake.gif"[/color][color=#77736F]//Smoothness depends on image file size,//the smaller the size the more you can use![/color][color=#77736F]// Configure below - change number of snow to renderAmount=15;[/color][color=#77736F]Ypos=new Array();Xpos=new Array();Speed=new Array();Step=new Array();Cstep=new Array();ns=(document.layers)?1:0;ns6=(document.getElementById&&!document.all)?1:0;[/color][color=#77736F]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++){	    var 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]= Math.random()*5+3;    Cstep[i]=0;    Step[i]=Math.random()*0.1+0.05;}function fall(){    var WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;    var WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;    var hscrll=(ns||ns6)?window.pageYOffset:document.body.scrollTop;    var wscrll=(ns||ns6)?window.pageXOffset:document.body.scrollLeft;    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;	    if (Ypos[i] > WinHeight){		    Ypos[i]=-60;		    Xpos[i]=Math.round(Math.random()*WinWidth);		    Speed[i]=Math.random()*5+3;	    }	    if (ns){		    document.layers['sn'+i].left=Xpos[i];		    document.layers['sn'+i].top=Ypos[i]+hscrll;	    }	    else if (ns6){		    document.getElementById("si"+i).style.left=Math.min(WinWidth,Xpos[i]);		    document.getElementById("si"+i).style.top=Ypos[i]+hscrll;	    }	    else{		    eval("document.all.si"+i).style.left=Xpos[i];		    eval("document.all.si"+i).style.top=Ypos[i]+hscrll;	    }	    Cstep[i]+=Step[i];    }    setTimeout('fall()',115);}window.onload=fall//--></script><p><font face="arial" size="-2">[/code]

[/color]

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...