【网页特效代码-文字特效】非常酷的晶体管文字显示效果,而且可以把小写转成大写.doc_第1页
【网页特效代码-文字特效】非常酷的晶体管文字显示效果,而且可以把小写转成大写.doc_第2页
【网页特效代码-文字特效】非常酷的晶体管文字显示效果,而且可以把小写转成大写.doc_第3页
【网页特效代码-文字特效】非常酷的晶体管文字显示效果,而且可以把小写转成大写.doc_第4页
【网页特效代码-文字特效】非常酷的晶体管文字显示效果,而且可以把小写转成大写.doc_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

【网页特效代码-文字特效】非常酷的晶体管文字显示效果,而且可以把小写转成大写/_CONFIGURATION AREA_/THIS LED SCRIPT TAKES UP 200 pixels HORIZONTAL and 28 pixels VERTICAL -Have Fun :-)/YOUR MESSAGE GOES ON NEXT 4 LINES DOWN, *ALLOWABLE CHARACTERS ARE: A-Z, Period, space, comma, numerals, question mark and message codes/THE 4 MESSAGE CODES: () - PAUSE FOR 3 SECONDS, (#) - FLASH FOR 3 SECONDS, () - SCROLL UP EFFECT, (_) - SUN EFFECT, ( $ ) - SPLIT EFFECT/EXAMPLE: var message=_ Java ScriptSource! # For the best dhtml scripts. ;var message=Welcome to jzzy,thank you!. _; var LEDonColor=Red; /color of the LEDs when they are onvar LEDoffColor=#7D0605; /color of the LEDs when they are offstartXPos=(screen.width/2)-100; /start of horizontal position eg. startXPos=20; places the leds 20 pixels from leftstartYPos=20; /start of vertical position/_END CONFIGURATION AREA_var IE=(document.all) ? true:false; var NS=(document.layers) ? true:false; var W3C=(document.getElementById) & (!IE) ? true:false; var d=document; if (window.offscreenBuffering) window.offscreenBuffering = true;function getCSS(id) if (IE) return d.allid /IE else if (NS) return d.layersid /NS4 else return d.getElementById(id)/W3C var alphabet=new Array(44);alphabet0=new Array(0111111,1001000,1001000,1001000,0111111); alphabet1=new Array(1111111,1001001,1001001,1001001,0110110);/Balphabet2=new Array(0111110,1000001,1000001,1000001,0100010); alphabet3=new Array(1111111,1000001,1000001,1000001,0111110);/Dalphabet4=new Array(1111111,1001001,1001001,1001001); alphabet5=new Array(1111111,1001000,1001000,1001000);/Falphabet6=new Array(0111110,1000001,1000001,1001001,0101110); alphabet7=new Array(1111111,0001000,0001000,0001000,1111111);/Halphabet8=new Array(1000001,1111111,1000001); alphabet9=new Array(0000110,0000001,0000001,0000001,1111110);/Jalphabet10=new Array(1111111,0001000,0010100,0100010,1000001); alphabet11=new Array(1111111,0000001,0000001,0000001);/Lalphabet12=new Array(1111111,0010000,0001000,0010000,1111111); alphabet13=new Array(1111111,0010000,0001000,0000100,1111111);/Nalphabet14=new Array(0111110,1000001,1000001,1000001,0111110); alphabet15=new Array(1111111,1001000,1001000,1001000,0110000);/Palphabet16=new Array(0111110,1000001,1000001,1000011,0111111); alphabet17=new Array(1111111,1001000,1001100,1001010,0110001);/Ralphabet18=new Array(0110010,1001001,1001001,1001001,0100110); alphabet19=new Array(1000000,1000000,1111111,1000000,1000000);/Talphabet20=new Array(1111110,0000001,0000001,0000001,1111110); alphabet21=new Array(1110000,0001100,0000011,0001100,1110000);/Valphabet22=new Array(1111110,0000001,0000010,0001100,0000010,0000001,1111110); alphabet23=new Array(1100011,0010100,0001000,0010100,1100011);/Xalphabet24=new Array(1100000,0010000,0001111,0010000,1100000); alphabet25=new Array(1000011,1000101,1001001,1010001,1100001);/Zalphabet26=new Array(0000000,0000000,0000000,0000000); alphabet27=new Array(0000000,0000001,0000000,0000000,0000000);/PERIODalphabet28=new Array(0000000,0000000,1111101,0000000,0000000);/!alphabet29=new Array(0100001,1111111,0000001); alphabet30=new Array(0100011,1000101,1001001,1001001,0110001);/2alphabet31=new Array(0100010,1001001,1001001,1001001,0110110); alphabet32=new Array(0001000,0011000,0101000,1111111,0001000);/4alphabet33=new Array(1111001,1001001,1001001,1001001,1000110); alphabet34=new Array(0111110,1001001,1001001,1001001,0100110);/6alphabet35=new Array(1000011,1000100,1001000,1110000); alphabet36=new Array(0110110,1001001,1001001,1001001,0110110);/8alphabet37=new Array(0110010,1001001,1001001,1001001,0111110); alphabet38=new Array(0000001,0000010,0000000);/COMMAalphabet39=new Array(XXXXXXX);/PAUSE ( )alphabet40=new Array(YYYYYYY);/FLASH ( # ) alphabet41=new Array(DDDDDDD);/SCROLL UP EFFECT ( )alphabet42=new Array(SSSSSSS);/SUN EFFECT ( _ )alphabet43=new Array(0100000,1000000,1001101,1001000,0110000);/?alphabet44=new Array(QQQQQQQ);/SPLIT EFFECT ( $ )message=message.toUpperCase(); /make message uppercasevar messageArray=new Array(); /make messageArray-an array of the letters in the messagevar columnCount=0; /variable to count columns in messageArray.lengthfor (i=0; i=65) & (letterNum=49) & (letterNum=57) temp=letterNum-20; /1-9 else if (letterNum=48) temp=14; /zero else if (letterNum=63) temp=43; /? else if (letterNum=44) temp=38; /, else if (letterNum=64) temp=39; /pause else if (letterNum=35) temp=40; /flash effect else if (letterNum=94) temp=41; /scroll up effect else if (letterNum=95) temp=42; /sunrise effect else if (letterNum=36) temp=44; /split effect else continue; for (ii=0; iialphabettemp.length;ii+) messageArraycolumnCount=alphabettempii;columnCount+; if (temp!=39) & (temp!=40) & (temp!=41) messageArraycolumnCount=0000000;columnCount+;/make led screen with block 0-49 on row 1, block 50-99 on row 2, block 100-149 on row 3, etc.var b=;for (var i=0; i49)+3*(i99)+3*(i149)+3*(i199)+3*(i249)+3*(i299); colPos=0+150*(i49)+150*(i99)+150*(i149)+150*(i199)+150*(i249)+150*(i299); b+= (NS) ? : ;document.write(b);var columnCounter=0; /keep track of postion of messageArrayvar bb=new Array(); /store particular LEDs dom element here if (NS) for (var i=0; i350; i+) bbi=getCSS(block+i) else for (var i=0; i350; i+) bbi=getCSS(block+i).style;var isOn=new Array();for (var i=0; i350; i+) isOni=0; /keep track on on/off status of particular LEDonArray=new Array(); var onCount=0; /array size counterfunction scroll() onCount=0; if (NS) for (var i=0; i301; i+=50) if (isOni=1) bbi.bgColor=LEDoffColor; isOni=0; for (var ii=1; ii50; ii+=7) temp=i+ii;temp1=temp+1;temp2=temp+2;temp3=temp+3;temp4=temp+4;temp5=temp+5;temp6=temp+6; if (isOntemp=1) bbtemp.bgColor=LEDoffColor; isOntemp=0; bbtemp-1.bgColor=LEDonColor; isOntemp-1=1; if (isOntemp1=1) bbtemp1.bgColor=LEDoffColor; isOntemp1=0; bbtemp.bgColor=LEDonColor; isOntemp=1; if (isOntemp2=1) bbtemp2.bgColor=LEDoffColor; isOntemp2=0; bbtemp+1.bgColor=LEDonColor; isOntemp+1=1; if (isOntemp3=1) bbtemp3.bgColor=LEDoffColor; isOntemp3=0; bbtemp2.bgColor=LEDonColor; isOntemp2=1; if (isOntemp4=1) bbtemp4.bgColor=LEDoffColor; isOntemp4=0; bbtemp3.bgColor=LEDonColor; isOntemp3=1; if (isOntemp5=1) bbtemp5.bgColor=LEDoffColor; isOntemp5=0; bbtemp4.bgColor=LEDonColor; isOntemp4=1; if (isOntemp6=1) bbtemp6.bgColor=LEDoffColor; isOntemp6=0; bbtemp5.bgColor=LEDonColor; isOntemp5=1; else for (var i=0; i301; i+=50) if (isOni=1) bbi.backgroundColor=LEDoffColor; isOni=0; for (var ii=1; ii50; ii+=7) temp=i+ii;temp1=temp+1;temp2=temp+2;temp3=temp+3;temp4=temp+4;temp5=temp+5;temp6=temp+6; if (isOntemp=1) bbtemp.backgroundColor=LEDoffColor; isOntemp=0; bbtemp-1.backgroundColor=LEDonColor; isOntemp-1=1; if (isOntemp1=1) bbtemp1.backgroundColor=LEDoffColor; isOntemp1=0; bbtemp.backgroundColor=LEDonColor; isOntemp=1; if (isOntemp2=1) bbtemp2.backgroundColor=LEDoffColor; isOntemp2=0; bbtemp+1.backgroundColor=LEDonColor; isOntemp+1=1; if (isOntemp3=1) bbtemp3.backgroundColor=LEDoffColor; isOntemp3=0; bbtemp2.backgroundColor=LEDonColor; isOntemp2=1; if (isOntemp4=1) bbtemp4.backgroundColor=LEDoffColor; isOntemp4=0; bbtemp3.backgroundColor=LEDonColor; isOntemp3=1; if (isOntemp5=1) bbtemp5.backgroundColor=LEDoffColor; isOntemp5=0; bbtemp4.backgroundColor=LEDonColor; isOntemp4=1; if (isOntemp6=1) bbtemp6.backgroundColor=LEDoffColor; isOntemp6=0; bbtemp5.backgroundColor=LEDonColor; isOntemp5=1; temp=messageArraycolumnCounter; flag=temp.charAt(0);/GET NEW COLUMN if (temp.charAt(1)=1) isOn99=1; if (temp.charAt(2)=1) isOn149=1 if (temp.charAt(3)=1) isOn199=1 if (temp.charAt(4)=1) isOn249=1 if (temp.charAt(5)=1) isOn299=1 if (temp.charAt(6)=1) isOn349=1 if (flag=0) else if (flag=1) isOn49=1; else if (flag=X) pauseScroll(); else if (flag=Y) flashScroll(); else if (flag=D) dropEffect(); else if (flag=S) sunRiseEffect(); else if (flag=Q) splitEffect(); columnCounter+; if(columnCounter=columnCount) columnCounter=0; /_pause effect_function pauseScroll() clearInterval(loop); setTimeout(init(),3000);/_onArray Section_onArray=new Array(); var onCount=0; /array size counterfunction makeOnArray() clearInterval(loop); onCount=0; for (var i=0; i700; i+)if (isOni=1) onArrayonCount=i; onCount+;/make onArray of on LEDS/_/_flash effect_var flashCount=0;function flashScroll() makeOnArray(); flashCount=0; if (NS) setTimeout(flashItNS(),250); else setTimeout(flashIt(),250);function flashItNS() flashCount+; if (flashCount14) if (flashCount % 2 = 0) for (var i=0; ionCount; i+) isOnonArrayi=0;bbonArrayi.bgColor=LEDoffColor; else for (var i=0; ionCount; i+)isOnonArrayi=1;bbonArrayi.bgColor=LEDonColor; setTimeout(flashItNS(),250); else flashCount=0; setTimeout(init(),250);function flashIt() flashCount+; if (flashCount14) if (flashCount % 2 = 0) for (var i=0; ionCount; i+) isOnonArrayi=0;bbonArrayi.backgroundColor=LEDoffColor; else for (var i=0; ionCount; i+)isOnonArrayi=1;bbonArrayi.backgroundColor=LEDonColor; setTimeout(flashIt(),250); else flashCount=0; setTimeout(init(),250);/_/_scroll up effect_dropArray=new Array();function dropEffect()makeOnArray(); for (var i=0; ionCount; i+) dropArrayi=onArrayi; if (NS) dropItNS(); else dropIt();var dropCount=0;function dropItNS() if (dropCount7)for (var i=0; ionCount; i+) bbdropArrayi.bgColor=LEDoffColor; for (var i=0; ionCount; i+) temp=dropArrayi; temp-=50;if (temp0) temp+=350;bbtemp.bgColor=LEDonColor; dropArrayi=temp; dropCount+; setTimeout(dropItNS(),100); else dropCount=0;setTimeout(init(),100);/_function dropIt() if (dropCount7) for (var i=0; ionCount; i+) bbdropArrayi.backgroundColor=LEDoffColor; for (var i=0; ionCount; i+) temp=dropArrayi; temp-=50; if (temp0) temp+=350; bbtemp.backgroundColor=LEDonColor; dropArrayi=temp; dropCount+; setTimeout(dropIt(),100); else dropCount=0;setTimeout(init(),100);/_/_sunrise effect_sunRiseCounter=0;sunRiseArray=new Array();sunRiseArray0=new Array(50,101,102,103,154,155,156,207,208,259,260,261,212,163,164,115,116,117,168,169,170,221,222,223,274,275,276,227,228,179,180,131,132,83,134,135,186,187,238,239,240,241,292,293,344,295,296,247,198);/HillssunRiseArray1=new Array(224,225,226); sunRiseArray2=new Array(174,175,176,177); sunRiseArray3=new Array(173,124,125,126,127,128,178); sunRiseArray4=new Array(172,123,74,75,76,77,129); sunRiseArray5=new Array(171,122,73,24,25,26,27,78,79,130);function sunRiseEffect() makeOnArray(); for (var i=0; ionCount; i+) isOnonArrayi=0; if (!NS) bbonArrayi.backgroundColor=LEDoffColor; else bbonArrayi.bgColor=LEDoffColor; setTimeout(riseEffectUp(),1000);function riseEffectUp() if (!NS) for (var ii=0; iisunRiseArraysunRiseCounter.length; ii+) isOnsunRiseArraysunRiseCounterii=1;bbsunRiseArraysunRiseCounterii.backgroundColor=LEDonColor; else for (var ii=0; ii5) sunRiseCounter=5;setTimeout(riseEffectDown(),2000); else setTimeout(riseEffectUp(),250);function riseEffectDown() if (!NS) for (var ii=0; iisunRiseArraysunRiseCounter.length; ii+) isOnsunRiseArraysunRiseCounterii=0;bbsunRiseArraysunRiseCounterii.backgroundColor=LEDoffColor; else for (var ii=0; iisunRiseArraysunRiseCounter.length; ii+) isOnsunRiseArraysunRiseCounterii=0;bbsunRiseArraysunRiseCounterii.bgColor=LEDoffColor; sunRiseCounter-; if (sunRiseCounter1) sunRiseCounter=0;setTimeout(init(),1500); else setTimeout(riseEffectDown(),250);/_/_split scroll effect_var splitCount=0;function splitEffect() makeOnArray(); for (var i=0; ionCount; i+) dropArrayi=onArrayi; if (NS) setTimeout(splitNS(),55); else if (IE) setTimeout(splitIt(),55); else setTimeout(splitIt(),100);function splitIt() for (i=0;ionCount;i+) temp=dropArrayi; if (temp150) if (temp=100) bbtemp.backgroundColor=LEDoffColor; temp=149; bbtemp-1.backgroundColor=LEDonColor; else if (temp=50) bbtemp.backgroundColor=LEDoffColor; temp=99; bbtemp-1.backgroundColor=LEDonColor; else if (temp=0) bbtemp.backgroundColor=LEDoffColor; temp=49; bbtemp-1.backgroundColor=LEDonColor; else bbtemp.backgroundColor=LEDoffColor; bbtemp-1.backgroundColor=LEDonColor; dropArrayi=temp-1; else if (temp=199) bbtemp.backgroundColor=LEDoffColor; temp=200; bbtemp+1.backgroundColor=LEDonColor; else if (temp=349) bbtemp.backgroundColor=LEDoffColor; temp=300; bbtemp+1.backgroundColor=LEDonColor; else if (temp=299) bbtemp.backgroundColor=LEDoffColor; temp=250; bbtemp+1.backgroundColor=LEDonColor; else if (temp=249) bb

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论