Javascript网页特效:闪现的礼花背景(2)

2008-02-23 08:03:15来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折


document.layers[templayer].left = Mleft yBase*Math.cos((currStep j*5)/3)*Math.sin(550 currStep/100)
}
}
currStep = step;
T=setTimeout("Fireworks()",5);
if (currStep == 220) {
currStep = -10;
for (n = 0; n < sClrs.length; n ) {
var k = Math.round(Math.random()*n);
}
initialStarColor = sClrs[k];
if (document.all) {
Dtop = window.document.body.clientHeight - 250;
Dleft = xBase * 3.5;
Mtop = Math.round(Math.random()*Dtop);
Mleft = Math.round(Math.random()*Dleft);
document.all.starsDiv.style.top = Mtop document.body.scrollTop;
document.all.starsDiv.style.left = Mleft document.body.scrollLeft;
}
else if (document.layers) {
Dleft = window.innerWidth - 100;
Dtop = window.innerHeight - 100;
Mtop = Math.round(Math.random()*Dtop window.pageYOffset);
Mleft = Math.round(Math.random()*Dleft window.pageXOffset);
document.layers[templayer].top = Mtop;
document.layers[templayer].left = Mleft;
}
if ((Mtop < 20) || (Mleft < 20)) {
Mtop = 90;
Mleft = 90;
}
}
}
Fireworks();
// End -->
</script>

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Javscript实现表单复选框的全选功能

下一篇:使用JavaScript脚本控制网页Table的显示隐藏