<script type="text/javascript"> function viewPage(html) { var page = window.open('', '', ''); page.opener = null; page.document.write(html); page.document.close(); } </script>
【编程游戏】贺岁放礼花。(第一名奖励10000可用分)
作者:
点燃[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行] <iframe src="http://vote.youkuaiyun.com/VotePostSimple.aspx?voteid=815" marginheight="0" marginwidth="0" scrolling="no" width="100%" frameborder="0" height="400"></iframe> <HTML xmlns:v><HEAD><META http-equiv='Content-Type' content='text/html;charset=gb2312'> <Meta name='Gemeratpr' content='网络程序员伴侣(Lshdic)2005'><TITLE>vml贺岁烟花</TITLE> <STYLE>v/:*{behavior:url(#default#VML);position:absolute;z-index:100;}</STYLE> </HEAD><BODY scroll=no bgcolor=black><div id=a style="width:100%;height:100%"></div> <script> //风云舞 var spt=new Array(96,124,125,71,72,73,187,183,184,92,74,59,60,23,12,64,126,127,120,16,22,96,106) function window.onload(){moveTo(0,0);resizeTo(2000,2000);focus(); add1();setInterval("add1()",600);setInterval("go()",100) }one=true function add1(){ if(Math.random()>0.7&&one==false)return false var x=Math.abs(Math.random()*a.offsetWidth),y=a.offsetHeight-40,color1="#"+(Math.random()*4096).toString(16),wid=20+Math.abs(Math.random()*50) a.appendChild(document.createElement('<v:oval id=vml0 o:spt="'+spt[Math.round(Math.random()*spt.length)]+'" style="width:'+wid+';height:'+wid+';LEFT:'+x+';TOP:'+y+'" strokecolor="rgb('+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+')" fillcolor="'+color1+'" dx="'+Math.round(Math.random()*30)+'"/>')) if(one)a.appendChild(document.createElement('<v:oval id=vml0 o:spt="'+spt[Math.round(Math.random()*spt.length)]+'" style="width:'+wid+';height:'+wid+';LEFT:'+x+';TOP:'+y+'" strokecolor="rgb('+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+')" fillcolor="'+color1+'" dx="'+Math.round(Math.random()*30)+'"/>')) one=false } function go(){ for(var i=0;i<vml0.length;i++){ var x=parseInt(vml0[i].style.left),y=parseInt(vml0[i].style.top),dx=Math.abs(vml0[i].dx) if(Math.random()<0.3||x<100||x>900||y<100){ if(vml0.length>3){ Math.random()<0.5?bao(parseInt(vml0[i].style.left)-50,parseInt(vml0[i].style.top)-50):bao2(parseInt(vml0[i].style.left)-50,parseInt(vml0[i].style.top)-50); vml0[i].removeNode();continue; }} vml0[i].style.top=y-dx if((i/2).toString().indexOf(".")==-1){ vml0[i].style.left=(x-Math.round(Math.random()*10)) }else{ vml0[i].style.left=(x+Math.round(Math.random()*10)) }}} var time2=null function bao2(baox,baoy){ a.innerHTML+='<v:oval id=e o:spt="'+spt[Math.round(Math.random()*spt.length)]+'" style="width:150;height:150;LEFT:'+baox+';TOP:'+baoy+'" strokecolor="red" filled="f" fillcolor="black" ve=1><v:extrusion on="t" backdepth="5pt" color="#cd375d" diffusity="1.5"/></v:oval>' if(time2==null)time2=setInterval("size2()",100); } var rotmxpos=2 function size2(){ rotmxpos+=5; var temp1=e.length;if(temp1==null)temp1=1 if(temp1==1){ e.extrusion.rotationangle=-rotmxpos+","+(-rotmxpos);e.Rotation+=rotmxpos var col="#"+(Math.random()*4096).toString(16) e.extrusion.color=col; }else{ for(var i=0;i<e.length;i++){ var ve=parseInt(e[i].ve);e[i].ve=ve+1; if(ve>30){if(e.length>3){e[i].outerHTML=""}else{e[i].style.display='none'}} e[i].extrusion.rotationangle=-rotmxpos+","+(-rotmxpos);e[i].Rotation+=rotmxpos var col="#"+(Math.random()*4096).toString(16) e[i].extrusion.color=col; }}} var time1=null function bao(baox,baoy){ var d=document.createElement('<span id=b style="position:absolute;left:'+baox+';top:'+baoy+';font-size:1px;"></span>') var r=new Array(79) for(var i=0;i<160;i++){ if((i/18).toString().indexOf(".")==-1){r[i]="<br>";continue;} if(Math.random()>0.6){ var color1="rgb("+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+")" r[i]="<font color='"+color1+"'>★</font>"}else{r[i]=" "} } d.innerHTML=r.join("");a.appendChild(d);if(time1==null)time1=setInterval("size1()",100); } function size1(){ var temp1=b.length;if(temp1==null)temp1=1 if(temp1==1){ se=parseInt(b.style.fontSize);b.style.fontSize=se+1;b.style.left=parseInt(b.style.left)-se }else{ for(var i=0;i<b.length;i++){ se=parseInt(b[i].style.fontSize),bv=b[i].value;if(bv==null){bv=100;b[i].value=bv;} if(se>25){if(bv==100){bv=200;b[i].value=200;}} if(bv==100){ b[i].style.fontSize=se+1;b[i].style.left=parseInt(b[i].style.left)-Math.abs(se/2);b[i].style.top=parseInt(b[i].style.top)-Math.abs(se/2) }else{ if(se<3){if(b.length>3){b[i].outerHTML="";continue;}else{b[i].style.display='none'}}else{ b[i].style.fontSize=se-2;b[i].style.left=parseInt(b[i].style.left)+se;b[i].style.top=parseInt(b[i].style.top)+se} }}}} </script></BODY></HTML>
点燃[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
作者:

点燃[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行] <iframe src="http://vote.youkuaiyun.com/VotePostSimple.aspx?voteid=815" marginheight="0" marginwidth="0" scrolling="no" width="100%" frameborder="0" height="400"></iframe> <HTML xmlns:v><HEAD><META http-equiv='Content-Type' content='text/html;charset=gb2312'> <Meta name='Gemeratpr' content='网络程序员伴侣(Lshdic)2005'><TITLE>vml贺岁烟花</TITLE> <STYLE>v/:*{behavior:url(#default#VML);position:absolute;z-index:100;}</STYLE> </HEAD><BODY scroll=no bgcolor=black><div id=a style="width:100%;height:100%"></div> <script> //风云舞 var spt=new Array(96,124,125,71,72,73,187,183,184,92,74,59,60,23,12,64,126,127,120,16,22,96,106) function window.onload(){moveTo(0,0);resizeTo(2000,2000);focus(); add1();setInterval("add1()",600);setInterval("go()",100) }one=true function add1(){ if(Math.random()>0.7&&one==false)return false var x=Math.abs(Math.random()*a.offsetWidth),y=a.offsetHeight-40,color1="#"+(Math.random()*4096).toString(16),wid=20+Math.abs(Math.random()*50) a.appendChild(document.createElement('<v:oval id=vml0 o:spt="'+spt[Math.round(Math.random()*spt.length)]+'" style="width:'+wid+';height:'+wid+';LEFT:'+x+';TOP:'+y+'" strokecolor="rgb('+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+')" fillcolor="'+color1+'" dx="'+Math.round(Math.random()*30)+'"/>')) if(one)a.appendChild(document.createElement('<v:oval id=vml0 o:spt="'+spt[Math.round(Math.random()*spt.length)]+'" style="width:'+wid+';height:'+wid+';LEFT:'+x+';TOP:'+y+'" strokecolor="rgb('+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+')" fillcolor="'+color1+'" dx="'+Math.round(Math.random()*30)+'"/>')) one=false } function go(){ for(var i=0;i<vml0.length;i++){ var x=parseInt(vml0[i].style.left),y=parseInt(vml0[i].style.top),dx=Math.abs(vml0[i].dx) if(Math.random()<0.3||x<100||x>900||y<100){ if(vml0.length>3){ Math.random()<0.5?bao(parseInt(vml0[i].style.left)-50,parseInt(vml0[i].style.top)-50):bao2(parseInt(vml0[i].style.left)-50,parseInt(vml0[i].style.top)-50); vml0[i].removeNode();continue; }} vml0[i].style.top=y-dx if((i/2).toString().indexOf(".")==-1){ vml0[i].style.left=(x-Math.round(Math.random()*10)) }else{ vml0[i].style.left=(x+Math.round(Math.random()*10)) }}} var time2=null function bao2(baox,baoy){ a.innerHTML+='<v:oval id=e o:spt="'+spt[Math.round(Math.random()*spt.length)]+'" style="width:150;height:150;LEFT:'+baox+';TOP:'+baoy+'" strokecolor="red" filled="f" fillcolor="black" ve=1><v:extrusion on="t" backdepth="5pt" color="#cd375d" diffusity="1.5"/></v:oval>' if(time2==null)time2=setInterval("size2()",100); } var rotmxpos=2 function size2(){ rotmxpos+=5; var temp1=e.length;if(temp1==null)temp1=1 if(temp1==1){ e.extrusion.rotationangle=-rotmxpos+","+(-rotmxpos);e.Rotation+=rotmxpos var col="#"+(Math.random()*4096).toString(16) e.extrusion.color=col; }else{ for(var i=0;i<e.length;i++){ var ve=parseInt(e[i].ve);e[i].ve=ve+1; if(ve>30){if(e.length>3){e[i].outerHTML=""}else{e[i].style.display='none'}} e[i].extrusion.rotationangle=-rotmxpos+","+(-rotmxpos);e[i].Rotation+=rotmxpos var col="#"+(Math.random()*4096).toString(16) e[i].extrusion.color=col; }}} var time1=null function bao(baox,baoy){ var d=document.createElement('<span id=b style="position:absolute;left:'+baox+';top:'+baoy+';font-size:1px;"></span>') var r=new Array(79) for(var i=0;i<160;i++){ if((i/18).toString().indexOf(".")==-1){r[i]="<br>";continue;} if(Math.random()>0.6){ var color1="rgb("+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+")" r[i]="<font color='"+color1+"'>★</font>"}else{r[i]=" "} } d.innerHTML=r.join("");a.appendChild(d);if(time1==null)time1=setInterval("size1()",100); } function size1(){ var temp1=b.length;if(temp1==null)temp1=1 if(temp1==1){ se=parseInt(b.style.fontSize);b.style.fontSize=se+1;b.style.left=parseInt(b.style.left)-se }else{ for(var i=0;i<b.length;i++){ se=parseInt(b[i].style.fontSize),bv=b[i].value;if(bv==null){bv=100;b[i].value=bv;} if(se>25){if(bv==100){bv=200;b[i].value=200;}} if(bv==100){ b[i].style.fontSize=se+1;b[i].style.left=parseInt(b[i].style.left)-Math.abs(se/2);b[i].style.top=parseInt(b[i].style.top)-Math.abs(se/2) }else{ if(se<3){if(b.length>3){b[i].outerHTML="";continue;}else{b[i].style.display='none'}}else{ b[i].style.fontSize=se-2;b[i].style.left=parseInt(b[i].style.left)+se;b[i].style.top=parseInt(b[i].style.top)+se} }}}} </script></BODY></HTML>
点燃[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]