This is quite good!
Here is one that allows you to make a word/letter/sentence of ANY colour,font or size snow down your screen. You can also change the speed and no of snowwords.
Code:<SCRIPT language="Javascript"> /*This means you don't need to have a picture of a snowflake just a letter. Defauly is * but you could have a combination you would need to replicate the whole script and have snowflakes spelling out a word!*/ snowletter="BuyPoe.com Up to date gaming news!" maximumsize=30 minimumsize=8 snowmax=35 snowcolor=new Array("#FFFFFF") snowtype=new Array("Berlin Sans FB Demi","Veranda","Georgia") /*This means you don't need to have a picture of a snowflake just a letter. Defauly is * but you could have a combination you would need to replicate the whole script and have snowflakes spelling out a word!*/ snowletter="BuyPoe.com Up to date gaming news!" snowingzone=1 snowmax=35 sinkspeed=0.6 //************************************************************************ //DONT EDIT BELOW THIS browserinfos=navigator.userAgent ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) ns6=document.getElementById&&!document.all opera=browserinfos.match(/Opera/) browserok=ie5||ns6 snow=new Array() marginbottom marginright timer i_snow=0 x_mv=new Array(); crds=new Array(); lftrght=new Array(); browserinfos=navigator.userAgent ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) ns6=document.getElementById&&!document.all opera=browserinfos.match(/Opera/) browserok=ie5||ns6 function randomnumber(range) { rand=Math.floor(range*Math.random()) return rand } function letitsnow() { if (ie5) { marginbottom = document.body.scrollHeight marginright = document.body.clientWidth-15 } else if (ns6) { marginbottom = document.body.scrollHeight marginright = window.innerWidth-15 } snowsizerange=maximumsize-minimumsize for (i=0;i<=snowmax;i++) { crds[i] = 0; lftrght[i] = Math.random()*10; 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)+snowminsize snow[i].style.fontSize=snow[i].size+'px'; snow[i].style.color=snowcolor[randommaker(snowcolor.length)] snow[i].style.zIndex=1000 snow[i].sink=sinkspeed*snow[i].size/5 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=randommaker(2*marginbottom-marginbottom-2*snow[i].size) snow[i].style.left=snow[i].posx+'px'; snow[i].style.top=snow[i].posy+'px'; } movesnow() } function movesnow() { for (i=0;i<=snowmax;i++) { crds[i] += x_mv[i]; snow[i].posy+=snow[i].sink snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i])+'px'; snow[i].style.top=snow[i].posy+'px'; 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 } } timer=setTimeout("movesnow()",40) } for (i=0;i<=snowmax;i++) { document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>") } if (browserok) { window.onload=letitsnow} </SCRIPT>
Similar Threads:
There are currently 1 users browsing this thread. (0 members and 1 guests)
Design Sites:
vBulletin Mods
Facebook Covers | Free Facebook Covers
Google Covers | Google Plus Covers
Game Sites:
MMORPG | MW3