分类：电脑/网络-互联网-上网帮助
问题：怎样装饰博客怎样让博客有类似树叶,雪花飞落 
怎样让博客有类似树叶,飞落
回答：好象你是需要上面雪花的效果吧?代码如下<style>body {background:#003 url( g) top center no-repeat; }.snowPosition { }</style><div id="oSnow" style=" :0; "></div><script type="text/javascript">totalSnow=40; //雪花数量dropHeight=80;oMode=5;imgsrc="images/ f"//雪花图片var oNodes;function initSnow(){//random config the property of snow image tElementById("oSnow").innerHTML="";     for(i=0;i<totalSnow;i++){          snowimg= eateElement("img");           c=imgsrc;           t="";           assName="snowPosition";          snowimg.width=parseInt(Math.random()*28);          snowimg.height=snowimg.width;           yle.left=parseInt(Math.random()* ientWidth-28)+"px";           p=parseInt(Math.random()*dropHeight)+"px";      tElementById("oSnow").appendChild(snowimg);     }     oNodes= tElementById("oSnow").childNodes;}function dropSnow(){          if(oNodes.length==0)return;     for(j=0;j<oNodes.length;j++){          nowTop=oNodes[j]. p;          nowLeft=oNodes[j].style.left;                    nowTop= bstring(0,nowTop.length-2);          nowLeft= bstring(0,nowLeft.length-2);          nowWidth=oNodes[j].clientWidth;          oNodes[j]. p=parseInt(nowTop)+2;                    //special show for random left right moving          leftDistance=parseInt(Math.random()*3)          oNodes[j].style.left=parseInt(nowLeft)-leftDistance;                              if(nowTop%oMode==0){                              if(nowWidth<1){                                        //remove old node,append new one!                     tElementById("oSnow").removeChild(oNodes[j]);                                        //new one                              snowimg= eateElement("img");                               c=imgsrc;                               t="";                               assName="snowPosition";                                                            snowimg.width=parseInt(Math.random()*28);                              snowimg.height=snowimg.width;                               yle.left=parseInt(Math.random()* ientWidth-28)+"px";                               p=parseInt(Math.random()*dropHeight)+"px";                               tElementById("oSnow").appendChild(snowimg);               }else{               oNodes[j].style.width=nowWidth-1;               oNodes[j].style.height=nowWidth-1;               }          }     }}//initwindow.onload=function(){initSnow();setInterval(dropSnow,200)}window.onresize=function(){initSnow()}</script>把代码加到网页里,再制作绘制雪花图,搞定