阅读下列说明和HTML文本,分析其中嵌入的JavaScript脚本,将应填入(n)处的语句写在对应栏内。
【说明】
在网页上显示漫天飞舞的雪花,雪花徐徐下落,如图10-1所示。

【 HTML文本】
<html>
<head>
<meta. http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>漫天飞雪</title>
</head>
<body bgcolor="#008000">
<SCRIPT. LANGUAG E="JavaScript1.2">
<!--
var no = 12; //设置雪花的总数
var speed = 10; //设置速度,其值表示定时器间隔
var heart = "snow.gif"; //设置雪花图案文件
var flag;
var ns4up = (document.layers) ? 1: 0; //测试是否是NetScape 浏览器
var ie4up = (document.all) ? 1: 0; //测试是否是IE浏览器
var dx. xp, yp;
var am, stx, sty;
var i, doc_width = 800, doc_height = 600; //设定并获取显示区域大小
if((1)){ //若是NetScape浏览器
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
else if (ie4up) {//若是IE 浏览器
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new (2);
yp = new Array();
amx = new Array();
amy = new Array();
stx= new Array();
sty = new Array();
flag = new Array();
for (i = 0; i<(3); ++ i) {
dx[i] = 0; //设置坐标变量
xp[i] = Math.random()*(doc_width-30)+10;
yp[i] = Math.random()*doc_height;
amy[i] = 12+ Math.random()*20;
amx[i] = 10+ Math.random()*40;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
flag[i] = (Math.random()>0.5)?1:0; //生成随机状态量
if (ns4up) { //若是 NetScape 浏览器
//输出雪花
document.write("<layer name=\"dot"+ i +"\" left=\"15\" "};
document.write("top=\"15\" visibility=\"show\"><IMG nClick=over(this) title=放大 src=\"");
document.write(heart+ "\" border=\"0\"></layer>");
} else
if (ie4up) { //若是IE浏览器
//输出雪花
document.write("<div i +"\" slyle=\"POSITION:");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><IMG nClick=over(this) title=放大 src=\" ");
document.write(heart+ "\" border=\"0\"></div>");
}
}
function helpor_net() {
for {i = 0; i<no; ++ i) { //逐个处理每片雪花
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 ((4)) dx[i] += stx[i];
else dx[i] -= stx[i];
if (Math.abs(dx[i])>Math. Pl) {
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]));