日杂下雪特效在哪

JavaScript0130

日杂下雪特效在哪,第1张

1、打开抖音之后,点击抖音首页右上角的搜索标志。

2、输入下雪了进行搜索。

3、点击搜索到的下雪了道具。

4、进入下雪了道具页面后,点击页面下方的拍同款标志。

5、点击拍摄按钮进行拍摄,拍摄时,画面就会出现下雪的场景,很逼真,就好像置身其中一样。

6、点击发布,这样下雪了特效视频就拍摄完成了。

分类: 电脑/网络 >>百度 >>百度空间

解析:

给你一个很漂亮的,源程序也很短。把下面那段放进BODY就行了。

<style>

.drop { position: absolutewidth: 3filter: flipV(), flipH()font-size: 40color: blue }

</style>

<script language="javascript">

snow = falsefalse-raintrue-snow

snowsym = " * " These are the symbols for each

rainsym = " * " You can put images here.

howmany = 15 How many drops/snowflakes?

/**************Do not need to change anything below***********/

if(snow){sym = snowsymspeed=5angle=6drops=howmany}

else{sym = rainsymspeed=3drops=howmanyangle=6}

movex = -speed/anglemovey = speedcount = 0

function moverain(){

for(move = 0move <dropsmove++){

xx[move]+=movexyy[move]+=mv[move]

hmm = Math.round(Math.random()*1)

if(xx[move] <0){xx[move] = maxx+10}

if(yy[move] >maxy){yy[move] = 10}

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 = 0make <dropsmake++){

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/16

drop[make].fontSize = (Math.random()*10)+20

if(snow){col = '#336699'}else{col = 'green'}

drop[make].color = col

}

window.onload=moverain

}

</script>

一定是的啦。。行不行瞧瞧吧