【编程游戏】贺岁霓虹灯。(参观109楼dh20156的霓虹灯)

【编程游戏】贺岁霓虹灯。(第一名奖励10000可用分)

 

效果图

评分

参观   [目前Firefox中好使,其他浏览器需复制到本地,存为html文件看效果] <html> <head> <title>Happy New Year</title> <style type="text/css"> html,body{background:#000;} h1{color:#D40FD5;} .neon table{border:2px solid #f00;} .neon td{font-size:0;line-height:0;padding:0;width:4px;height:4px;background:#000;} .neon .green1{background:#63FD67;} .neon .green2{background:#109808;} .neon .red{background:#f00;} .neon .brown{background:#E5893E;} .neon .yellow{background:#FFF016;} .neon .star-white{background:#DCDEEF;} .neon .star-green{background:#63FD67;} .neon .star-blue{background:#3A53A2;} .neon .s-xin{background:#F8FF0D;} .neon .s-happy{background:#f00;} .neon .s-dh{background:#202020;} .neon .sf-star{background:#F601BE;} .neon .sf-star2{background:#FB7BEC;} </style> </head> <body> <h1>新年快乐,Happy New Year! (IE很慢的说 >_<)</h1> <div id="wrap" class="neon">Happy New Year</div> </body> <script type="text/javascript"> var stylesheet={addRule:function(){var idx=0;return function(d,s,v){if(d.addRule){d.addRule(s,v);}else{d.insertRule(s+'{'+v+'}',idx++);}};}(),newStyleSheet:function(){if(document.createStyleSheet){return document.createStyleSheet();}var ds=document.createElement('style');ds.type='text/css';document.getElementsByTagName('head')[0].appendChild(ds);return document.styleSheets[document.styleSheets.length-1];}}; //创建画布 var newCanvas=function(r,c){var std=new Array(c+1).join('<td> </td>');var str=new Array(r+1).join('<tr>'+std+'</tr>');return'<table cellspacing="0" cellpadding="0">'+str+'</table>';}; //画布类 var oCanvas=function(){this.showstyle=function(r,c,scolor){try{this.rows[r].cells[c].className=scolor;}catch(e){}};}; //取包装对象 var dwrap = document.getElementById('wrap'); dwrap.style.display = 'none'; //创建画布 dwrap.innerHTML = newCanvas(90,160); //取画布对象 var dcanvas = dwrap.childNodes[0]; oCanvas.call(dcanvas); //设置图案 var setpattern=function(callback){var foolist=[function(){var tree1=[[5,33],[6,34],[6,33],[7,35],[7,33],[8,32],[8,35],[9,19],[9,32],[9,17],[9,18],[9,20],[9,21],[9,31],[9,36],[10,15],[10,16],[10,22],[10,33],[10,36],[11,34],[11,18],[11,23],[11,24],[11,17],[11,36],[12,19],[12,25],[12,26],[12,35],[12,36],[13,28],[13,35],[13,27],[13,21],[13,22],[13,23],[13,20],[13,36],[14,24],[14,29],[14,30],[14,35],[14,36],[15,24],[15,30],[15,31],[15,35],[15,36],[16,24],[16,27],[16,28],[16,31],[16,32],[16,35],[16,36],[17,32],[17,35],[17,24],[17,33],[17,25],[17,26],[17,29],[17,36],[18,29],[18,33],[18,34],[18,30],[18,35],[18,36],[19,48],[19,52],[19,34],[19,31],[19,32],[19,36],[19,49],[19,50],[19,51],[20,35],[20,43],[20,56],[20,33],[20,36],[20,44],[20,45],[20,46],[20,47],[20,53],[20,54],[20,55],[21,33],[21,40],[21,41],[21,42],[21,57],[21,58],[22,16],[22,20],[22,24],[22,27],[22,13],[22,14],[22,15],[22,17],[22,19],[22,18],[22,21],[22,23],[22,22],[22,25],[22,26],[22,28],[22,29],[22,36],[22,37],[22,38],[22,59],[22,60],[23,12],[23,31],[23,9],[23,10],[23,11],[23,30],[23,61],[23,62],[23,45],[23,41],[23,42],[23,43],[23,44],[24,33],[24,8],[24,7],[24,22],[24,26],[24,27],[24,51],[24,49],[24,46],[24,47],[24,48],[24,50],[24,62],[24,63],[25,25],[25,28],[25,31],[25,21],[25,6],[25,19],[25,23],[25,40],[25,64],[26,14],[26,43],[26,5],[26,18],[26,10],[26,29],[26,11],[26,20],[26,24],[26,41],[26,42],[26,52],[26,64],[27,36],[27,7],[27,4],[27,30],[27,28],[27,6],[27,12],[27,15],[27,17],[27,38],[27,44],[27,45],[27,46],[27,54],[27,52],[27,55],[27,65],[28,47],[28,12],[28,16],[28,27],[28,3],[28,5],[28,9],[28,37],[28,42],[28,29],[28,65],[28,52],[28,53],[28,56],[29,3],[29,8],[29,26],[29,28],[29,40],[29,48],[29,43],[29,65],[29,60],[29,59],[29,58],[29,56],[30,25],[30,38],[30,41],[30,49],[30,43],[30,44],[30,45],[30,27],[30,65],[30,62],[30,61],[30,58],[30,56],[31,50],[31,24],[31,26],[31,39],[31,42],[31,46],[31,65],[31,64],[31,63],[31,57],[32,23],[32,40],[32,42],[32,51],[32,46],[32,47],[32,48],[32,25],[32,65],[33,22],[33,40],[33,43],[33,52],[33,48],[33,25],[34,53],[34,40],[34,21],[34,24],[34,44],[34,48],[35,20],[35,23],[35,41],[35,44],[35,54],[35,48],[35,49],[35,50],[35,51],[36,19],[36,22],[36,41],[36,45],[36,55],[36,51],[37,17],[37,18],[37,21],[37,41],[37,45],[37,56],[37,51],[38,16],[38,17],[38,21],[38,41],[38,45],[38,57],[38,51],[39,16],[39,15],[39,20],[39,41],[39,46],[39,58],[39,51],[39,52],[39,53],[39,54],[39,55],[40,41],[40,14],[40,19],[40,46],[40,59],[40,55],[41,13],[41,18],[41,41],[41,46],[41,60],[41,55],[42,11],[42,12],[42,18],[42,42],[42,46],[42,61],[42,55],[43,10],[43,17],[43,42],[43,47],[43,61],[43,55],[44,9],[44,17],[44,42],[44,47],[44,55],[44,56],[44,57],[44,58],[44,61],[44,13],[45,8],[45,13],[45,17],[45,43],[45,47],[45,59],[45,60],[45,61],[45,12],[46,7],[46,13],[46,16],[46,43],[46,47],[46,11],[47,6],[47,13],[47,15],[47,43],[47,48],[47,10],[48,5],[48,6],[48,9],[48,14],[48,43],[48,48],[48,13],[49,42],[49,5],[49,8],[49,48],[49,4],[50,4],[50,7],[50,41],[50,48],[50,3],[51,4],[51,6],[51,42],[51,48],[51,3],[52,3],[52,4],[52,43],[52,49],[52,5],[53,3],[53,43],[53,49],[53,4],[54,43],[54,49],[54,3],[55,43],[55,49],[56,43],[56,49],[57,42],[57,49],[58,42],[58,43],[58,49],[58,50],[59,44],[59,50],[60,45],[60,50],[61,46],[61,50],[61,48],[61,47],[62,49],[62,50],[63,50]];for(var i=0;i<tree1.length;i++){dcanvas.showstyle(tree1[i][0],tree1[i][1],'green1');}},function(){var tree1_2=[[21,37],[21,36],[21,38],[22,39],[22,35],[23,32],[23,33],[23,34],[23,35],[23,39],[24,31],[24,39],[24,36],[25,30],[25,37],[25,38],[25,39],[25,36],[26,30],[26,40],[26,35],[27,31],[27,32],[27,33],[27,34],[27,40],[28,39],[28,34],[28,31],[29,34],[29,38],[29,31],[29,33],[30,36],[30,35],[30,37],[30,31],[30,33],[31,30],[31,32],[32,30],[32,32],[33,29],[33,32],[34,29],[34,32],[35,29],[35,31],[36,28],[36,31],[37,28],[37,31],[38,28],[38,30],[39,27],[39,30],[40,27],[40,30],[41,27],[41,29],[42,26],[42,29],[43,26],[43,29],[44,26],[44,29],[45,26],[45,28],[46,25],[46,28],[47,25],[47,28],[48,25],[48,27],[49,24],[49,27],[50,24],[50,27],[51,24],[51,27],[52,24],[52,26],[53,23],[53,26],[54,23],[54,26],[55,23],[55,26],[56,23],[56,25],[57,22],[57,25],[58,22],[58,25],[59,22],[59,25],[60,22],[60,25],[61,22],[61,25],[62,21],[62,25],[63,21],[63,25],[64,21],[64,24],[65,21],[65,24],[66,21],[66,24],[67,20],[67,24],[68,20],[68,24],[69,20],[69,24],[70,20],[70,24],[71,20],[71,24],[72,19],[72,24],[73,19],[73,24],[74,19],[74,24],[75,19],[75,24],[76,19],[76,24],[77,19],[77,20],[77,21],[77,22],[77,23],[77,24]];for(i=0;i<tree1_2.length;i++){dcanvas.showstyle(tree1_2[i][0],tree1_2[i][1],'yellow');}},function(){var tree1_3=[[22,36],[22,37],[22,38],[23,36],[23,38],[23,37],[24,32],[24,33],[24,34],[24,37],[24,38],[24,36],[24,35],[25,31],[25,32],[25,33],[25,34],[25,35],[26,31],[26,32],[26,33],[26,34],[26,36],[26,37],[26,38],[26,39],[27,35],[27,36],[27,37],[27,39],[27,38],[28,35],[28,36],[28,37],[28,38],[29,35],[29,36],[29,37]];for(i=0;i<tree1_3.length;i++){dcanvas.showstyle(tree1_3[i][0],tree1_3[i][1],'red');}},function(){var tree1_4=[[28,32],[28,33],[29,32],[30,32],[31,31],[32,31],[33,30],[33,31],[34,30],[34,31],[35,30],[36,29],[36,30],[37,29],[37,30],[38,29],[39,28],[39,29],[40,28],[40,29],[41,28],[42,27],[42,28],[43,27],[43,28],[44,27],[44,28],[45,27],[46,26],[46,27],[47,26],[47,27],[48,26],[49,25],[49,26],[50,25],[50,26],[51,25],[51,26],[52,25],[53,24],[53,25],[54,24],[54,25],[55,24],[55,25],[56,24],[57,23],[57,24],[58,23],[58,24],[59,23],[59,24],[60,23],[60,24],[61,23],[61,24],[62,22],[62,23],[62,24],[63,22],[63,23],[63,24],[64,22],[64,23],[65,22],[65,23],[66,22],[66,23],[67,21],[67,22],[67,23],[68,21],[68,22],[68,23],[69,21],[69,22],[69,23],[70,21],[70,22],[70,23],[71,21],[71,22],[71,23],[72,20],[72,21],[72,22],[72,23],[73,20],[73,21],[73,22],[73,23],[74,20],[74,21],[74,22],[74,23],[75,20],[75,21],[75,22],[75,23],[76,20],[76,21],[76,22],[76,23]];for(i=0;i<tree1_4.length;i++){dcanvas.showstyle(tree1_4[i][0],tree1_4[i][1],'brown');}},function(){var tree1_5=[[7,34],[8,33],[8,34],[9,33],[9,34],[9,35],[10,34],[10,35],[10,17],[10,18],[10,20],[10,19],[10,21],[11,35],[11,20],[11,19],[11,21],[11,22],[12,20],[12,21],[12,22],[12,23],[12,24],[13,24],[13,25],[13,26],[14,25],[14,26],[14,27],[14,28],[15,25],[15,26],[15,27],[15,28],[15,29],[16,25],[16,26],[16,29],[16,30],[17,30],[17,31],[18,31],[18,32],[19,35],[19,33],[20,34],[20,48],[20,49],[20,50],[20,51],[20,52],[21,34],[21,35],[21,43],[21,44],[21,45],[21,46],[21,47],[21,48],[21,49],[21,50],[21,51],[21,52],[21,54],[21,53],[21,55],[21,56],[22,34],[22,41],[22,42],[22,43],[22,44],[22,45],[22,46],[22,47],[22,48],[22,49],[22,51],[22,52],[22,50],[22,53],[22,54],[22,55],[22,56],[22,58],[22,57],[23,13],[23,14],[23,15],[23,16],[23,17],[23,18],[23,19],[23,20],[23,21],[23,22],[23,23],[23,24],[23,25],[23,26],[23,27],[23,28],[23,29],[23,46],[23,47],[23,48],[23,49],[23,50],[23,51],[23,52],[23,53],[23,54],[23,55],[23,56],[23,57],[23,58],[23,59],[23,60],[24,9],[24,10],[24,11],[24,12],[24,13],[24,14],[24,15],[24,16],[24,17],[24,18],[24,19],[24,20],[24,21],[24,23],[24,24],[24,25],[24,28],[24,29],[24,30],[24,52],[24,53],[24,54],[24,55],[24,56],[24,57],[24,58],[24,59],[24,60],[24,61],[25,7],[25,8],[25,9],[25,10],[25,11],[25,12],[25,13],[25,14],[25,15],[25,16],[25,17],[25,18],[25,20],[25,24],[25,29],[25,52],[25,53],[25,54],[25,55],[25,56],[25,57],[25,58],[25,59],[25,60],[25,61],[25,62],[25,63],[26,6],[26,7],[26,8],[26,9],[26,12],[26,13],[26,15],[26,16],[26,17],[26,53],[26,54],[26,55],[26,56],[26,57],[26,58],[26,60],[26,59],[26,61],[26,62],[26,63],[27,5],[27,8],[27,9],[27,16],[27,29],[27,53],[27,56],[27,57],[27,58],[27,59],[27,60],[27,61],[27,62],[27,63],[27,64],[27,41],[27,42],[27,43],[28,4],[28,8],[28,28],[28,57],[28,58],[28,59],[28,60],[28,61],[28,62],[28,64],[28,63],[28,43],[28,44],[28,45],[28,46],[29,27],[29,57],[29,61],[29,62],[29,63],[29,64],[29,44],[29,45],[29,46],[29,47],[29,39],[30,26],[30,57],[30,64],[30,63],[30,46],[30,47],[30,48],[30,39],[30,40],[31,25],[31,47],[31,48],[31,49],[31,40],[31,41],[32,24],[32,49],[32,50],[32,41],[33,23],[33,24],[33,49],[33,50],[33,51],[33,41],[33,42],[34,22],[34,23],[34,49],[34,50],[34,51],[34,52],[34,41],[34,42],[34,43],[35,21],[35,22],[35,52],[35,53],[35,42],[35,43],[36,20],[36,21],[36,52],[36,53],[36,54],[36,42],[36,43],[36,44],[37,19],[37,20],[37,52],[37,53],[37,54],[37,55],[37,42],[37,43],[37,44],[38,18],[38,19],[38,20],[38,52],[38,53],[38,54],[38,55],[38,56],[38,42],[38,43],[38,44],[39,17],[39,18],[39,19],[39,56],[39,57],[39,42],[39,43],[39,44],[39,45],[40,15],[40,16],[40,17],[40,18],[40,56],[40,57],[40,58],[40,42],[40,43],[40,44],[40,45],[41,14],[41,15],[41,16],[41,17],[41,56],[41,57],[41,58],[41,59],[41,42],[41,43],[41,44],[41,45],[42,13],[42,14],[42,15],[42,16],[42,17],[42,56],[42,57],[42,58],[42,59],[42,60],[42,45],[42,43],[42,44],[43,11],[43,12],[43,13],[43,14],[43,15],[43,16],[43,56],[43,57],[43,58],[43,59],[43,60],[43,43],[43,44],[43,45],[43,46],[44,10],[44,11],[44,12],[44,14],[44,15],[44,16],[44,59],[44,60],[44,43],[44,44],[44,45],[44,46],[45,9],[45,10],[45,11],[45,14],[45,15],[45,16],[45,44],[45,45],[45,46],[46,8],[46,9],[46,10],[46,14],[46,15],[46,44],[46,45],[46,46],[47,7],[47,8],[47,9],[47,14],[47,44],[47,45],[47,46],[47,47],[48,7],[48,8],[48,44],[48,45],[48,46],[48,47],[49,6],[49,7],[49,43],[49,44],[49,47],[49,46],[49,45],[50,5],[50,6],[50,42],[50,43],[50,44],[50,47],[50,45],[50,46],[51,5],[51,43],[51,44],[51,47],[51,45],[51,46],[52,44],[52,48],[52,46],[52,45],[52,47],[53,44],[53,48],[53,45],[53,46],[53,47],[54,44],[54,48],[54,45],[54,46],[54,47],[55,44],[55,48],[55,45],[55,46],[55,47],[56,44],[56,48],[56,45],[56,46],[56,47],[57,44],[57,43],[57,48],[57,45],[57,46],[57,47],[58,44],[58,48],[58,45],[58,46],[58,47],[59,45],[59,49],[59,48],[59,46],[59,47],[60,46],[60,47],[60,48],[60,49],[61,49]];for(i=0;i<tree1_5.length;i++){dcanvas.showstyle(tree1_5[i][0],tree1_5[i][1],'green2');}}, function(){var star1_1=[[26,80],[28,80],[28,78],[28,82],[29,79],[29,81],[30,82],[30,78],[30,84],[30,76],[31,81],[31,79],[32,80],[32,82],[32,78],[34,80]];for(i=0;i<star1_1.length;i++){dcanvas.showstyle(star1_1[i][0],star1_1[i][1],'star-white');}},function(){var star1_2=[[22,80],[23,80],[24,86],[24,83],[24,77],[24,74],[25,85],[25,80],[25,75],[26,84],[26,82],[26,78],[26,76],[27,88],[27,83],[27,77],[27,73],[28,85],[28,75],[30,75],[30,73],[30,72],[30,85],[30,87],[30,88],[32,75],[32,85],[33,73],[33,77],[33,83],[33,87],[34,76],[34,84],[35,75],[35,78],[35,80],[35,82],[35,85],[36,80],[37,77],[37,83],[38,80]];for(i=0;i<star1_2.length;i++){dcanvas.showstyle(star1_2[i][0],star1_2[i][1],'star-green');}},function(){var star1_3=[[18,80],[19,85],[19,80],[19,75],[20,80],[21,89],[21,71],[22,88],[22,84],[22,76],[22,72],[23,87],[23,73],[25,68],[26,91],[26,70],[30,67],[30,68],[30,69],[30,70],[30,93],[30,92],[30,91],[30,90],[34,71],[34,89],[35,68],[35,91],[36,74],[36,86],[37,73],[37,87],[38,72],[38,88],[39,71],[39,76],[39,80],[39,84],[39,89],[41,75],[41,80],[41,85],[42,80]];for(i=0;i<star1_3.length;i++){dcanvas.showstyle(star1_3[i][0],star1_3[i][1],'star-blue');}},function(){var s_xin=[[31,83],[31,101],[32,83],[32,94],[32,101],[32,114],[32,120],[33,82],[33,85],[33,84],[33,83],[33,81],[33,91],[33,92],[33,93],[33,100],[33,102],[33,103],[33,104],[33,105],[33,106],[33,107],[33,108],[33,114],[33,120],[33,137],[33,138],[33,139],[34,84],[34,90],[34,99],[34,104],[34,114],[34,115],[34,120],[34,124],[34,135],[34,136],[34,82],[34,116],[35,89],[35,84],[35,104],[35,114],[35,116],[35,118],[35,119],[35,120],[35,121],[35,122],[35,123],[35,124],[35,125],[35,131],[35,133],[35,132],[35,134],[35,82],[35,117],[36,80],[36,81],[36,83],[36,84],[36,86],[36,85],[36,82],[36,89],[36,90],[36,91],[36,92],[36,93],[36,94],[36,95],[36,100],[36,101],[36,102],[36,103],[36,104],[36,105],[36,106],[36,98],[36,107],[36,108],[36,112],[36,114],[36,124],[36,120],[36,125],[36,136],[36,99],[36,96],[36,97],[36,113],[37,83],[37,89],[37,93],[37,99],[37,104],[37,112],[37,114],[37,120],[37,124],[37,132],[37,137],[38,83],[38,89],[38,93],[38,99],[38,104],[38,112],[38,114],[38,120],[38,124],[38,132],[38,137],[39,79],[39,80],[39,82],[39,84],[39,85],[39,87],[39,86],[39,83],[39,81],[39,89],[39,93],[39,99],[39,104],[39,114],[39,112],[39,124],[39,120],[39,131],[39,137],[40,83],[40,89],[40,93],[40,99],[40,97],[40,98],[40,100],[40,101],[40,102],[40,103],[40,105],[40,104],[40,106],[40,107],[40,108],[40,96],[40,109],[40,114],[40,112],[40,116],[40,119],[40,118],[40,117],[40,120],[40,121],[40,122],[40,123],[40,124],[40,125],[40,126],[40,127],[40,130],[40,131],[40,132],[40,134],[40,135],[40,137],[40,139],[40,141],[40,138],[40,136],[40,133],[40,140],[40,142],[40,143],[40,110],[40,111],[40,128],[40,129],[41,83],[41,86],[41,89],[41,93],[41,104],[41,114],[41,119],[41,122],[41,137],[41,133],[41,139],[41,80],[42,83],[42,86],[42,89],[42,93],[42,104],[42,114],[42,118],[42,123],[42,137],[42,132],[42,140],[42,80],[43,83],[43,93],[43,104],[43,114],[43,117],[43,124],[43,137],[43,141],[43,131],[43,79],[43,87],[43,88],[44,83],[44,82],[44,104],[44,114],[44,116],[44,125],[44,126],[44,127],[44,137],[44,136],[44,128],[44,129],[44,130],[44,142],[44,143],[44,135],[44,134],[44,133],[44,94],[44,95]];for(i=0;i<s_xin.length;i++){dcanvas.showstyle(s_xin[i][0],s_xin[i][1],'s-xin');}},function(){var s_happy=[[48,79],[48,83],[48,86],[48,87],[48,90],[48,91],[48,92],[48,93],[48,95],[48,96],[48,97],[48,98],[48,100],[48,104],[48,106],[48,110],[48,112],[48,113],[48,114],[48,115],[48,117],[48,119],[48,121],[48,123],[48,127],[48,129],[48,130],[48,131],[48,132],[48,135],[48,136],[48,139],[48,140],[48,141],[48,142],[49,79],[49,83],[49,85],[49,88],[49,93],[49,90],[49,95],[49,98],[49,100],[49,104],[49,106],[49,107],[49,110],[49,112],[49,117],[49,119],[49,121],[49,123],[49,127],[49,129],[49,134],[49,137],[49,139],[49,142],[50,79],[50,80],[50,81],[50,82],[50,83],[50,85],[50,88],[50,86],[50,87],[50,93],[50,90],[50,91],[50,92],[50,95],[50,98],[50,97],[50,96],[50,101],[50,102],[50,103],[50,106],[50,108],[50,110],[50,112],[50,113],[50,114],[50,115],[50,117],[50,119],[50,121],[50,124],[50,125],[50,126],[50,129],[50,130],[50,131],[50,132],[50,134],[50,137],[50,135],[50,136],[50,139],[50,141],[50,140],[50,142],[51,79],[51,83],[51,85],[51,88],[51,90],[51,95],[51,102],[51,106],[51,109],[51,110],[51,112],[51,117],[51,119],[51,121],[51,125],[51,129],[51,134],[51,137],[51,139],[51,141],[52,79],[52,83],[52,85],[52,88],[52,90],[52,95],[52,102],[52,106],[52,110],[52,112],[52,113],[52,114],[52,115],[52,119],[52,117],[52,118],[52,120],[52,121],[52,125],[52,129],[52,130],[52,131],[52,132],[52,134],[52,137],[52,139],[52,142],[52,143],[52,144],[52,145],[52,146],[53,147],[54,148],[55,148],[56,147],[57,146],[58,145],[59,144],[60,143],[61,143],[62,144],[63,145],[63,146],[63,147],[63,148],[64,144],[64,149],[65,143],[65,150],[65,146],[66,143],[66,151],[66,147],[66,150],[67,143],[67,149],[67,151],[68,152],[68,145],[68,146],[68,147],[68,148],[68,144],[69,144],[69,152],[70,144],[70,152],[71,144],[71,152],[72,151],[72,145],[73,146],[73,147],[73,148],[73,149],[73,150]];for(i=0;i<s_happy.length;i++){dcanvas.showstyle(s_happy[i][0],s_happy[i][1],'s-happy');}},function(){var s_dh=[[55,79],[55,88],[55,89],[56,79],[56,81],[56,80],[56,82],[56,84],[56,86],[56,88],[56,87],[56,89],[56,90],[56,91],[57,79],[57,81],[57,82],[57,84],[57,86],[57,88],[57,89],[57,91],[58,79],[58,80],[58,81],[58,82],[58,83],[58,84],[58,86],[58,87],[58,88],[58,89],[58,91],[59,84],[60,84],[60,83],[60,82]];for(i=0;i<s_dh.length;i++){dcanvas.showstyle(s_dh[i][0],s_dh[i][1],'s-dh');}},function(){var sf_star=[[54,70],[54,71],[55,70],[55,71],[55,75],[55,76],[55,72],[56,70],[56,73],[56,74],[56,71],[56,72],[56,75],[56,76],[57,70],[57,74],[57,72],[57,71],[57,73],[57,75],[58,75],[58,69],[58,71],[58,70],[58,72],[58,73],[58,74],[59,70],[59,76],[59,68],[59,69],[59,71],[59,73],[59,75],[59,72],[59,74],[60,70],[60,77],[60,73],[60,67],[60,69],[60,68],[60,71],[60,72],[60,74],[60,76],[60,75],[61,70],[61,78],[61,66],[61,67],[61,68],[61,69],[61,71],[61,73],[61,72],[61,74],[61,76],[61,75],[61,77],[62,70],[62,72],[62,71],[63,70],[63,71],[64,70],[64,71],[65,70]];for(i=0;i<sf_star.length;i++){dcanvas.showstyle(sf_star[i][0],sf_star[i][1],'sf-star');}},function(){var sf_star2=[[50,68],[51,68],[51,70],[52,68],[52,71],[53,68],[53,72],[53,75],[53,76],[53,77],[53,78],[53,79],[53,73],[53,74],[54,68],[54,78],[55,68],[55,78],[56,68],[56,78],[57,67],[57,78],[58,66],[58,78],[59,65],[59,78],[60,64],[60,79],[60,80],[61,63],[61,81],[62,62],[62,83],[63,61],[63,62],[63,63],[63,64],[63,65],[63,66],[63,67],[63,68],[63,84],[64,68],[64,75],[64,76],[64,78],[64,77],[64,79],[64,81],[64,80],[64,82],[64,83],[64,84],[64,85],[65,68],[65,74],[66,68],[66,73],[67,68],[67,72],[68,68],[68,71],[69,68],[69,70],[70,68],[70,69],[71,68]];for(i=0;i<sf_star2.length;i++){dcanvas.showstyle(sf_star2[i][0],sf_star2[i][1],'sf-star2');}}];var innerfoo=function(){if(!foolist.length){if(callback&&callback.constructor==Function){callback();}return;}var foo=foolist.shift();foo();window.setTimeout(arguments.callee,50);};innerfoo();}; //闪烁 var changeColor=function(){dwrap.style.display='block';var ostyle=stylesheet.newStyleSheet();var idx1=0,idx2=0;var acolor_tree=[['#63FD67','#109808'],['#109808','#63FD67'],['#f00','#FFF016'],['#E5893E','#7E0000'],['#FFF016','#f00']];var acolor_star=[['#DCDEEF','#63FD67','#3A53A2'],['#63FD67','#3A53A2','#DCDEEF'],['#3A53A2','#DCDEEF','#63FD67']];var acolor_txt=[['#F8FF0D','#F00'],['#F00','#F8FF0D']];var ctree=function(){idx1=idx1?0:1;stylesheet.addRule(ostyle,'.neon .green1','background:'+acolor_tree[0][idx1]);stylesheet.addRule(ostyle,'.neon .green2','background:'+acolor_tree[1][idx1]);stylesheet.addRule(ostyle,'.neon .red','background:'+acolor_tree[2][idx1]);stylesheet.addRule(ostyle,'.neon .brown','background:'+acolor_tree[3][idx1]);stylesheet.addRule(ostyle,'.neon .yellow','background:'+acolor_tree[4][idx1]);stylesheet.addRule(ostyle,'.neon .s-xin','background:'+acolor_txt[0][idx1]);stylesheet.addRule(ostyle,'.neon .s-happy','background:'+acolor_txt[1][idx1]);window.setTimeout(arguments.callee,1000);};var cstar=function(){idx2=(idx2>=2)?0:idx2+1;stylesheet.addRule(ostyle,'.neon .star-white','background:'+acolor_star[0][idx2]);stylesheet.addRule(ostyle,'.neon .star-green','background:'+acolor_star[1][idx2]);stylesheet.addRule(ostyle,'.neon .star-blue','background:'+acolor_star[2][idx2]);window.setTimeout(arguments.callee,100);};window.setTimeout(ctree,1000);window.setTimeout(cstar,1000);} //开始 window.onload = function(){setpattern(changeColor);} </script> </html>
参观   [目前Firefox中好使,其他浏览器需复制到本地,存为html文件看效果]

 

你可能感兴趣的:(游戏,编程,function,tree,callback,stylesheet)