正在加载图片...
湖北职晚计算机科学与技术亲理论课教案一《网页设计》 function snowNSO //Netscape main animation function for(i=0; i<no; ++i //iterate for every dot if (yp[i]> doc height-50)( xp[]=10+ Math. random *(doc width-amx[i-30); p] flag[i]=(Math. random(<0.5)?1: 0 stx[]=0.02+ Math. random(/10 sty[]=0.7+ Math. random doc width= self. inner Width doc height= self. inner Height; if (flag) dx[]+=stx[i] else dx[i]-=stx[i] if (Math. abs( dx(i)>Math. Pl)i ypl[+=Math. abs( amyl"dxliD) xp[]=amx[]*dx[i] dx[]=0, flagli=!flaglil document layers["dot"+i]. top=yp[]+ amy[]*(Math. abs( Math. sin(dx[])+dx[)); document layers["dot"+i]. left=xp[i]+ amx[i*dx[i]: setTimeout("snowNSO", speed) function snowlEO //IE main animation function for(i=0; i< no; ++i) //iterate for every dot if (yp[i]>doc height-50)( xp[]=10+ Math. random(*(doc width-amx(i-30); p=0 stx[]=0.02+ Math. random(/10 sty[]=0.7+ Ma flagli=(Math. random(<0. 5)?1: 0 doc width=document. body. client Width doc height =document. body. client Height; if (flag))湖北职院计算机科学与技术系理论课教案—《网页设计》 } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot if (yp[i] > doc_height-50) { xp[i] = 10+ Math.random()*(doc_width-amx[i]-30); yp[i] = 0; flag[i]=(Math.random()<0.5)?1:0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } if (flag[i]) dx[i] += stx[i]; else dx[i] -= stx[i]; if (Math.abs(dx[i]) > Math.PI) { yp[i]+=Math.abs(amy[i]*dx[i]); xp[i]+=amx[i]*dx[i]; dx[i]=0; flag[i]=!flag[i]; } document.layers["dot"+i].top = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i])); document.layers["dot"+i].left = xp[i] + amx[i]*dx[i]; } setTimeout("snowNS()", speed); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot if (yp[i] > doc_height-50) { xp[i] = 10+ Math.random()*(doc_width-amx[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); flag[i]=(Math.random()<0.5)?1:0; doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } if (flag[i])
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有