小语教师验证| 初语教师验证|扬州教师验证|快速获积分| 宣传获积分 微信宣传得积分| 积分换VIP |积分来源
唐老师网站
唐老师网站提供免费义务教育阶段语文教学资源库服务。有希望合作者,请联系我们。 合作内容:1.资源共同开发、宣传、使用。2.网络与语文教学结合技术支持。3.宣传推荐学校、机构、个人及产品。4.为本站用户提供免费产品或服务。5.其他合作内容。

TOP

礼花效果 代码
2012-08-20 11:20:19 来源:唐老师网站 作者: 【 】 浏览:971次 吐槽:0
最近浏览过的会员: (查看更多)

<layer name="a0" left="10" top="10" visibility="show" bgcolor="#ffffff" clip="0,0,1,1">
</layer>
<layer name="a1" left="10" top="10" visibility="show" bgcolor="#fff000" clip="0,0,1,1">
</layer>
<layer name="a2" left="10" top="10" visibility="show" bgcolor="#ffa000" clip="0,0,1,1">
</layer>
<layer name="a3" left="10" top="10" visibility="show" bgcolor="#ff00ff" clip="0,0,1,1">
</layer>
<layer name="a4" left="10" top="10" visibility="show" bgcolor="#00ff00" clip="0,0,1,1">
</layer>
<layer name="a5" left="10" top="10" visibility="show" bgcolor="#ff00ff" clip="0,0,1,1">
</layer>
<layer name="a6" left="10" top="10" visibility="show" bgcolor="#ff0000" clip="0,0,1,1">
</layer>
<layer name="a7" left="10" top="10" visibility="show" bgcolor="#ffffff" clip="0,0,1,1">
</layer>
<layer name="a8" left="10" top="10" visibility="show" bgcolor="#fff000" clip="0,0,1,1">
</layer>
<layer name="a9" left="10" top="10" visibility="show" bgcolor="#ffa000" clip="0,0,1,1">
</layer>
<layer name="a10" left="10" top="10" visibility="show" bgcolor="#ff00ff" clip="0,0,1,1">
</layer>
<layer name="a11" left="10" top="10" visibility="show" bgcolor="#00ff00" clip="0,0,2,2">
</layer>
<layer name="a12" left="10" top="10" visibility="show" bgcolor="#0000ff" clip="0,0,2,2">
</layer>
<layer name="a13" left="10" top="10" visibility="show" bgcolor="#ff0000" clip="0,0,2,2">
</layer>
<body bgcolor="#000000">
<div id="starsDiv" style="position:absolute;top:0px;left:0px"><div
style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px"></div><div
style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px"></div><div
style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px"></div><div
style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px"></div><div
style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px"></div><div
style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px"></div><div
style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px"></div><div
style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px"></div><div
style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px"></div><div
style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px"></div><div
style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px"></div><div
style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px"></div><div
style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px"></div><div
style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px"></div></div><script
LANGUAGE="java script">
var Clrs = new Array(9);
Clrs[0] = 'ff0000';
Clrs[1] = '00ff00';
Clrs[2] = '000aff';
Clrs[3] = 'ff00ff';
Clrs[4] = 'ffa500';
Clrs[5] = 'ffff00';
Clrs[6] = '00ff00';
Clrs[7] = 'ffffff';
Clrs[8] = 'fffff0';
var sClrs = new Array(5);
sClrs[0] = 'ffa500';
sClrs[1] = '55ff66';
sClrs[2] = 'AC9DFC';
sClrs[3] = 'fff000';
sClrs[4] = 'fffff0';
var yBase;
var xBase;
var step;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;
var initialStarColor = 'ffa000';
var Mtop = 250;
var Mleft = 250;
function Fireworks() {
if (document.all) {
yBase = window.document.body.offsetHeight / 3;
xBase = window.document.body.offsetWidth / 8;
}
else if (document.layers) {
yBase = window.innerHeight / 3;
xBase = window.innerWidth / 8;
}
if (document.all) {
step = 5;
for ( i = 0 ; i < starsDiv.all.length ; i++ ) {
for (ai = 0; ai < Clrs.length; ai++) {
var c = Math.round(Math.random()*[ai]);
}
if (currStep < 90)
starsDiv.all[i].style.background=initialStarColor;
if (currStep > 90)
starsDiv.all[i].style.background=Clrs[c];
starsDiv.all[i].style.top = Mtop + yBase*Math.sin((currStep+i*5)/3)*Math.sin(550+currStep/100)
starsDiv.all[i].style.left = Mleft + yBase*Math.cos((currStep+i*5)/3)*Math.sin(550+currStep/100)
   }
}
else if (document.layers) {
step = 5;
for ( j = 0 ; j < 24 ; j++ ) {
var templayer = "a"+j;
for (ai = 0; ai < Clrs.length; ai++) {
var c = Math.round(Math.random()*[ai]);
}
if (currStep < 90)
document.layers[templayer].bgColor=initialStarColor;
if (currStep > 90)
document.layers[templayer].bgColor=Clrs[c];
document.layers[templayer].top = Mtop + yBase*Math.sin((currStep+j*5)/3)*Math.sin(550+currStep/100)
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();
</script>
相关搜索
中搜索:礼花效果 代码
中搜索:礼花效果 代码
中搜索:礼花效果 代码
41
Tags:礼花 效果 代码 分享网友:admin
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【吐槽】 【关闭】 【返回顶部
分享到QQ空间
分享到: 
上一篇可以拖动的菜单代码 下一篇在线发送邮件 代码

坚持党对教育事业的全面领导,坚持把立德树人作为根本任务,坚持优先发展教育事业.

相关栏目

最新文章

内容加载中,请稍候...

图片主题

内容加载中,请稍候...

热门文章

内容加载中,请稍候...

推荐文章

内容加载中,请稍候...

相关文章

内容加载中,请稍候...

贡献者排行榜(感谢“唐老师们”)

您正在浏览:礼花效果 代码 需要更多请站内搜索,还是没有请免费向我们索取。
唐老师网站**********************一线语文教师互动分享***************部编版统编语文
关于本站 ----广告服务---版权申明---联系我们---网站地图 --
本网大部分资源来源于会员上传,除本网组织的资源外,版权归原作者所有,如有侵犯版权,请立刻和本网联系并提供证据,本网将在三个工作日内改正。
Copyright © 2009 - 2013 520yuwen. All Rights Reserved 工信部备案苏ICP备05032846-1号
站长:唐桂荣

苏公网安备 32100302010062号

本站与www.yz110.com同为“唐老师网站”旗下网站。