Tip: You can modify some of the code before running
JS Christmas under the snowflake background effect code <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" > <ptml> <pead> <title>js Christmas snowflake background Effect Code & lt;/title> <meta http-equiv= "Content-type" content= "text/html;charset=gb2312" > <!--Add the following code to <pead> Between </pead>--> <style type= "Text/css" > Body{background-color: #228B22; drop{position:absolute;width : 3;FILTER:FLIPV (), Fliph (); font-size:40;color:blue;} </style> <script language= "JavaScript" > Snow = true; Snowsym = "*" Rainsym = "'" Howmany = if (Snow) {sym = Snowsym; speed=1; angle=10; Drops=howmany} else{sym = Rainsym; speed=50; drops=howmany; angle=6} Movex =-speed/angle; Movey = speed; Count = 0; function Moverain () {for (move = 0; move < drops; move++) {Xx[move]+=movex; Yy[move]+=mv[move]; hmm = Math.Round (Math.random () *1); if (Xx[move] < 0) {Xx[move] = maxx+10} if (Yy[move] > Maxy) {yy[move] = n drop[move].left = xx[move] Drop[move].top = Yy[move]+document.body.scrolltop; }settimeout (' MoveRain () ', ' 1 ')} </script> <script language= "JavaScript" > if (document.all) {drop = new array (); xx = new Array () ; yy = new Array (); MV = new Array () ly = "document.all['"; st = "'].style" for (make = 0, make < drops make++) {document.write (' <div id= ' drop ' +make+ ' "class=drop> ' +sym+ ') ;/div> '); Drop[make] = eval (ly+ ' drop ' +make+st); Maxx = document.body.clientwidth-40 Maxy = document.body.clientheight-40 Xx[make] = Math.random () *maxx; Yy[make] = -100-math.random () *maxy; Drop[make].left = Xx[make] Drop[make].top = Yy[make] mv[make] = (Math.random () *5) +speed/4; Drop[make].fontsize = (Math.random () *10) +20; *change (col = ' White "to" (Col =your COLOR) *//if (snow) {col = ' white '}else{col = ' blue '} drop[make].color = col; } Window.onload=moverain} </script> </pead> <body> see? </body> </ptml>
Tip: You can modify some of the code before running