/****************************************** * Snow Effect script-By Altan d.o.o. (Http://www.altan.hr/snow/index.html) ******************************************/ / / Localizacao da imagem do floco de neve var snowsrc = "http://astuforum.free.fr/images/neige.gif" / / Quantidade de Flocos de Neve nd Tela var sem = 30; / / Configura se a neve deve desaparecer após x segundos (0 = nunca): hidesnowtime var i = 3; / / Configura quanta neve deve cair para baixo antes de desaparecer ("windowheight" ou "PageHeight") snowdistance var = "PageHeight"; /////////// Stop Config ////////////////////////////////// ie4up var = (document.all)? 1: 0; ns6up var = (document.getElementById & &! document.all)? 1: 0; iecompattest function () { retorno (document.compatMode & & document.compatMode! = "BackCompat")? document.documentElement: document.body } dx var, xp, yp / / coordenar e variáveis posição var am, stx, chiqueiro, variáveis / amplitude / e passo var i, doc_width = 800, doc_height = 600; if (ns6up) { self.innerWidth doc_width =; self.innerHeight doc_height =; } Else if (ie4up) { iecompattest doc_width = () clientWidth.; iecompattest doc_height = () clientHeight.; } dx = new Array (); xp Array = new (); yp Array = new (); sou Array = new (); stx Array = new (); chiqueiro Array = new (); snowsrc snowsrc.indexOf = (("dynamicdrive.com ")!=- 1)? "Snow.gif": snowsrc for (i = 0; src='"+snowsrc+"' \ / a> <\ / div>"); Else {} document.write ("
< \ "); } } } snowIE_NS6 função () {/ / IE e NS6 função de animação principal doc_width = ns6up window.innerWidth-10: iecompattest () clientWidth-10;?. doc_height = (window.innerHeight & & snowdistance == "windowheight")? window.innerHeight: (ie4up & & snowdistance == "windowheight")? iecompattest () clientHeight:. (ie4up & & & & window.opera snowdistance == "PageHeight!")? iecompattest () scrollHeight: iecompattest () offsetHeight;.. for (i = 0; doc_height-50) { xp [i] = Math.random () * (doc_width-am [i] -30); yp [i] = 0; stx [i] = 0,02 + Math.random () / 10; chiqueiro [i] = 0,7 + Math.random (); } dx [i] + = stx [i]; document.getElementById ("ponto" + i) style.top = yp [i] + "px". document.getElementById ("ponto" + i) = style.left xp [i] + sou [i] * Math.sin (dx [i]) + "px". } setTimeout snowtimer = ("snowIE_NS6 ()", 10); } hidesnow function () { if (window.snowtimer) (snowtimer) clearTimeout for (i = 0; i 0) setTimeout ("hidesnow ()", * hidesnowtime 1000) }