搜索
首页 教育/科学 理工学科 地球科学

大家做下一个下雨”JavaScript 脚本

大家做下一个下雨”JavaScript 脚本

全部回答

2018-02-12

0 0
    将以下脚本放在〈Body〉〈/Body〉中间即可:");document。write(",");}else{document。write("");document。write(",");}}elseif(ie4up){if(i==0){document。
  write("");document。  write(",");}else{document。write("");document。write("’");//设定雨点的字符}}}functioninitRain(){a=6;r[i]=1;sn=Math。
  sin(a);cs=Math。cos(a);cx[i]=Math。  random()*doc_width+1;cy[i]=Math。random()*doc_height+1;x[i]=r[i]*sn+cx[i];y[i]=cy[i];}functionmakeRain(){r[i]=1;cx[i]=Math。
  random()*doc_width+1;cy[i]=1;x[i]=r[i]*sn+cx[i];y[i]=r[i]*cs+cy[i];}functionupdateRain(){r[i]+=s;x[i]=r[i]*sn+cx[i];y[i]=r[i]*cs+cy[i];}functionraindropNS(){for(i=0;i=(doc_width-20))||(y[i]>=(doc_height-20))){makeRain();doc_width=self。
    innerWidth;doc_height=self。innerHeight;}document。layers["dot"+i]。top=y[i];document。layers["dot"+i]。
  left=x[i];}setTimeout("raindropNS()",speed);}functionraindropIE(){for(i=0;i=(doc_width-20))||(y[i]>=(doc_height-20))){makeRain();doc_width=document。
    body。clientWidth;doc_height=document。body。clientHeight;}document。all["dot"+i]。style。
  pixelTop=y[i];document。all["dot"+i]。style。pixelLeft=x[i];}setTimeout("raindropIE()",speed);}if(ns4up){raindropNS();}elseif(ie4up){raindropIE();}//End-->。
    。

2018-02-12

38 0
    A:将以下脚本放在〈Body〉〈/Body〉中间即可:");document。write(",");}else{document。write("");document。
  write(",");}}elseif(ie4up){if(i==0){document。write("");document。  write(",");}else{document。
  write("");document。write("'");//设定雨点的字符}}}functioninitRain(){a=6;r[i]=1;sn=Math。sin(a);cs=Math。cos(a);cx[i]=Math。
    random()*doc_width+1;cy[i]=Math。random()*doc_height+1;x[i]=r[i]*sn+cx[i];y[i]=cy[i];}functionmakeRain(){r[i]=1;cx[i]=Math。
  random()*doc_width+1;cy[i]=1;x[i]=r[i]*sn+cx[i];y[i]=r[i]*cs+cy[i];}functionupdateRain(){r[i]+=s;x[i]=r[i]*sn+cx[i];y[i]=r[i]*cs+cy[i];}functionraindropNS(){for(i=0;i=(doc_width-20))||(y[i]>=(doc_height-20))){makeRain();doc_width=self。
    innerWidth;doc_height=self。innerHeight;}document。layers["dot"+i]。top=y[i];document。layers["dot"+i]。
  left=x[i];}setTimeout("raindropNS()",speed);}functionraindropIE(){for(i=0;i=(doc_width-20))||(y[i]>=(doc_height-20))){makeRain();doc_width=document。
    body。clientWidth;doc_height=document。body。clientHeight;}document。all["dot"+i]。style。
  pixelTop=y[i];document。all["dot"+i]。style。pixelLeft=x[i];}setTimeout("raindropIE()",speed);}if(ns4up){raindropNS();}elseif(ie4up){raindropIE();}//End-->。
    。

2018-02-12

7 0
我在百度知道答了很多特效

类似问题换一批

热点推荐

热度TOP

相关推荐
加载中...

热点搜索 换一换

教育/科学
地球科学
院校信息
升学入学
理工学科
出国/留学
职业教育
人文学科
外语学习
学习帮助
K12
理工学科
地球科学
农业科学
生物学
建筑学
心理学
数学
天文学
工程技术科学
化学
环境学
生态学
物理学
地球科学
地球科学
举报
举报原因(必选):
取消确定举报