Javascript设计漫天雪花
摘要:Javascript设计漫天雪花原代码插入到<body>下面:<scriptlanguage="JavaScript"><!-N=40;Y=newArray();X=newArray();S=newArray();A=newArray();B=newArray();M=newArray();V=(document.layers)?1:0;iH=(document.layers)?window.innerHeight:window.document.body.clientHeight;iW=(document.layers)?window.innerWidth:window.document.body.clientWidth;for(i=0;i<N;i++){Y[i]=Math.round(Math.random()*iH);X[i]=Math.round(Math.random()*iW);S[i]=Math.round(Math.random()*5+2);A[i]=0;B[i]=Math.random()*0.1+0.1;M[i]=Math.round(Math.random()*1+1);}if(V){for(i=0;i<N;i++){document.write("<LAYERNAME='sn"+i+"'LEFT=0TOP=0BGCOLOR='#FFFFF0'CLIP='0,0,"+M[i]+","+M[i]+"'></LAYER>")}}else{document.write('<divstyle="position:absolute;top:
温馨提示:当前文档最多只能预览
5 页,若文档总页数超出了
5 页,请下载原文档以浏览全部内容。
本文档由 匿名用户 于 2021-11-28 00:45:50上传分享