한국어
<!-- http://www.downcodes.com --> <!-- bbs http://www.downcodes.com/bbs--> <!--脚本说明: 把如下代码加入<body>区域中--> <레이어 이름="a0" 왼쪽=10 상단=10 가시성=표시 bgcolor="#ffffff" 클립="0,0,1,1"></layer> <레이어 이름="a1" 왼쪽 =10 top=10 visible=show bgcolor="#fff000"clip="0,0,1,1"></layer> <layer name="a2" left=10 top=10 visible=show bgcolor="# ffa000" 클립="0,0,1,1"></layer> <layer name="a3" 왼쪽=10 상단=10 가시성=bgcolor="#ff00ff" 클립="0,0,1,1 표시 "></layer> <layer name="a4" left=10 top=10 visible=show bgcolor="#00ff00"clip="0,0,1,1"></layer> <layer name="a5 " 왼쪽=10 상단=10 가시성=bgcolor="#ff00ff" 클립="0,0,1,1"></layer> <layer name="a6" 왼쪽=10 상단=10 가시성=bgcolor= 표시 "#ff0000" 클립="0,0,1,1"></layer> <layer name="a7" 왼쪽=10 상단=10 가시성=bgcolor="#ffffff" 클립="0,0,1 표시 ,1"></layer> <레이어 이름="a8" left=10 top=10 visible=show bgcolor="#fff000" 클립="0,0,1,1"></layer> <레이어 이름= "a9" 왼쪽=10 상단=10 가시성=표시 bgcolor="#ffa000" 클립="0,0,1,1"></layer> <layer name="a10" 왼쪽=10 상단=10 가시성=표시 bgcolor="#ff00ff" 클립="0,0,1,1"></layer> <layer name="a11" left=10 top=10 visible=show bgcolor="#00ff00"clip="0,0 ,2,2"></layer> <layer name="a12" left=10 top=10 visible=show bgcolor="#0000ff" 클립="0,0,2,2"></layer> <layer name="a13" left=10 top=10 visible=show bgcolor="#ff0000"clip="0,0,2,2"></layer> <div id="starsDiv" style="position:absolute; 상단:0px;왼쪽:0px"> <div 스타일="위치:상대적;너비:2px;높이:2px;배경:#ffffff;글꼴-크기:2px"></div> <div 스타일="위치:상대적 ;너비:1px;높이:1px;배경:#fff000;글꼴 크기:1px"></div> <div 스타일="위치:상대적;너비:1px;높이:1px;배경:#ffa000;글꼴 크기 :1px"></div> <div style="position:relative;width:1px;height:1px; background:#ff00ff;font-size:1px"></div> <div style="position:relative; 너비:1px;높이:1px;배경:#00ff00;글꼴 크기:1px"></div> <div 스타일="위치:상대적;폭:1px;높이:1px;배경:#0000ff;글꼴 크기: 1px"></div> <div 스타일="위치:상대적;너비:1px;높이:1px;배경:#FF0000;글꼴-크기:1px"></div> <div 스타일="위치:상대적;폭 :1px;높이:1px;배경:#ffffff;글꼴 크기:1px"></div> <div 스타일="위치:상대적;너비:1px;높이:1px;배경:#fff000;글꼴 크기:1px "></div> <div style="position:relative;width:1px;height:1px; background:#ffa000;font-size:1px"></div> <div style="position:relative;width: 1px;높이:1px;배경:#ff00ff;글꼴 크기:1px"></div> <div 스타일="위치:상대적;너비:2px;높이:2px;배경:#ff00ff;글꼴 크기:2px" ></div> <div style="position:relative;width:1px;height:1px; background:#0000ff;font-size:1px"></div> <div style="position:relative;width:1px ;높이:1px;배경:#FF0000;글꼴 크기:1px"></div> </div> <SCRIPT LANGUAGE="JavaScript"> <!-- 시작 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 y베이스; var x베이스; var 단계; var currStep = 0; var Xpos = 1; var Ypos = 1; varinitialStarColor = '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) { 단계 = 5; for ( i = 0 ; i < starDiv.all.length ; i++ ) { for (ai = 0; ai < Clrs.length; ai++) { var c = Math.round(Math.random()*[ai]); } if (currStep < 90) starDiv.all[i].style.Background=initialStarColor; if (currStep > 90) starDiv.all[i].style.Background=Clrs[c]; starDiv.all[i].style.top = Mtop + yBase*Math.sin((currStep+i*5)/3)*Math.sin(550+currStep/100) starDiv.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++ ) { //NS 레이어 수! 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+= 단계; T=setTimeout("불꽃놀이()",5); if (currStep == 220) { currStep = -10; for (n = 0; n < sClrs.length; n++) { var k = Math.round(Math.random()*n); } 초기StarColor = 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; } } } 불꽃놀이(); // 끝 --> </script>