login  Naam:   Wachtwoord: 
Registreer je!
 Forum

LED paneel

Offline Jeffer69 - 09/07/2008 15:15
Avatar van Jeffer69Nieuw lid Hoi beste SiMa's 
Ik heb overlaatst een leuk script gevonden waarmee je een soort LED paneel maakt waar je dan tekst in kan laten scrollen.
In de body tag zet je:
  1. <BODY onLoad="init()">

hier is de code:

  1. <script language="JavaScript">
  2.  
  3. //____________________CONFIGURATION AREA_______________________________________________
  4.  
  5.  
  6.  
  7. //THIS LED SCRIPT TAKES UP 200 pixels HORIZONTAL and 28 pixels VERTICAL -Have Fun :-)
  8.  
  9. //YOUR MESSAGE GOES ON NEXT 4 LINES DOWN, *ALLOWABLE CHARACTERS ARE: A-Z, Period, space, comma, numerals, question mark and 'message codes'
  10.  
  11. //THE 4 MESSAGE CODES: (@) - PAUSE FOR 3 SECONDS, (#) - FLASH FOR 3 SECONDS, (^) - SCROLL UP EFFECT, (_) - SUN EFFECT, ( $ ) - SPLIT EFFECT
  12.  
  13. //EXAMPLE: var message="_ Java^^ ScriptSource! # For the best dhtml scripts... http://javascript.internet.com ";
  14.  
  15.  
  16.  
  17. var message="Welcome Welkom Bienvenue Wilkommen ";
  18.  
  19.  
  20.  
  21. var LEDonColor='orange'; //color of the LEDs when they are on
  22.  
  23. var LEDoffColor='#7D0605'; //color of the LEDs when they are off
  24.  
  25. startXPos=(screen.width/2)-100; //start of horizontal position eg. startXPos=20; places the leds 20 pixels from left
  26.  
  27. startYPos=20; //start of vertical position
  28.  
  29. //____________________END CONFIGURATION AREA_______________________________________________
  30.  
  31.  
  32.  
  33. var IE=(document.all) ? true:false; var NS=(document.layers) ? true:false; var W3C=((document.getElementById) && (!IE)) ? true:false;
  34.  
  35. var d=document; if (window.offscreenBuffering) window.offscreenBuffering = true;
  36.  
  37. function getCSS(id) {
  38.  
  39. if (IE) return d.all[id] //IE
  40.  
  41. else if (NS) return d.layers[id] //NS4
  42.  
  43. else return d.getElementById(id)//W3C
  44.  
  45. }
  46.  
  47. var alphabet=new Array(44);
  48.  
  49. alphabet[0]=new Array("0111111","1001000","1001000","1001000","0111111"); alphabet[1]=new Array("1111111","1001001","1001001","1001001","0110110");//B
  50.  
  51. alphabet[2]=new Array("0111110","1000001","1000001","1000001","0100010"); alphabet[3]=new Array("1111111","1000001","1000001","1000001","0111110");//D
  52.  
  53. alphabet[4]=new Array("1111111","1001001","1001001","1001001"); alphabet[5]=new Array("1111111","1001000","1001000","1001000");//F
  54.  
  55. alphabet[6]=new Array("0111110","1000001","1000001","1001001","0101110"); alphabet[7]=new Array("1111111","0001000","0001000","0001000","1111111");//H
  56.  
  57. alphabet[8]=new Array("1000001","1111111","1000001"); alphabet[9]=new Array("0000110","0000001","0000001","0000001","1111110");//J
  58.  
  59. alphabet[10]=new Array("1111111","0001000","0010100","0100010","1000001"); alphabet[11]=new Array("1111111","0000001","0000001","0000001");//L
  60.  
  61. alphabet[12]=new Array("1111111","0010000","0001000","0010000","1111111"); alphabet[13]=new Array("1111111","0010000","0001000","0000100","1111111");//N
  62.  
  63. alphabet[14]=new Array("0111110","1000001","1000001","1000001","0111110"); alphabet[15]=new Array("1111111","1001000","1001000","1001000","0110000");//P
  64.  
  65. alphabet[16]=new Array("0111110","1000001","1000001","1000011","0111111"); alphabet[17]=new Array("1111111","1001000","1001100","1001010","0110001");//R
  66.  
  67. alphabet[18]=new Array("0110010","1001001","1001001","1001001","0100110"); alphabet[19]=new Array("1000000","1000000","1111111","1000000","1000000");//T
  68.  
  69. alphabet[20]=new Array("1111110","0000001","0000001","0000001","1111110"); alphabet[21]=new Array("1110000","0001100","0000011","0001100","1110000");//V
  70.  
  71. alphabet[22]=new Array("1111110","0000001","0000010","0001100","0000010","0000001","1111110"); alphabet[23]=new Array("1100011","0010100","0001000","0010100","1100011");//X
  72.  
  73. alphabet[24]=new Array("1100000","0010000","0001111","0010000","1100000"); alphabet[25]=new Array("1000011","1000101","1001001","1010001","1100001");//Z
  74.  
  75. alphabet[26]=new Array("0000000","0000000","0000000","0000000"); alphabet[27]=new Array("0000000","0000001","0000000","0000000","0000000");//PERIOD
  76.  
  77. alphabet[28]=new Array("0000000","0000000","1111101","0000000","0000000");//!
  78.  
  79. alphabet[29]=new Array("0100001","1111111","0000001"); alphabet[30]=new Array("0100011","1000101","1001001","1001001","0110001");//2
  80.  
  81. alphabet[31]=new Array("0100010","1001001","1001001","1001001","0110110"); alphabet[32]=new Array("0001000","0011000","0101000","1111111","0001000");//4
  82.  
  83. alphabet[33]=new Array("1111001","1001001","1001001","1001001","1000110"); alphabet[34]=new Array("0111110","1001001","1001001","1001001","0100110");//6
  84.  
  85. alphabet[35]=new Array("1000011","1000100","1001000","1110000"); alphabet[36]=new Array("0110110","1001001","1001001","1001001","0110110");//8
  86.  
  87. alphabet[37]=new Array("0110010","1001001","1001001","1001001","0111110"); alphabet[38]=new Array("0000001","0000010","0000000");//COMMA
  88.  
  89. alphabet[39]=new Array("XXXXXXX");//PAUSE ( @ )
  90.  
  91. alphabet[40]=new Array("YYYYYYY");//FLASH ( # )
  92.  
  93. alphabet[41]=new Array("DDDDDDD");//SCROLL UP EFFECT ( ^ )
  94.  
  95. alphabet[42]=new Array("SSSSSSS");//SUN EFFECT ( _ )
  96.  
  97. alphabet[43]=new Array("0100000","1000000","1001101","1001000","0110000");//?
  98.  
  99. alphabet[44]=new Array("QQQQQQQ");//SPLIT EFFECT ( $ )
  100.  
  101.  
  102.  
  103. message=message.toUpperCase(); //make message uppercase
  104.  
  105. var messageArray=new Array(); //make messageArray-an array of the letters in the message
  106.  
  107. var columnCount=0; //variable to count columns in messageArray.length
  108.  
  109. for (i=0; i<message.length; i++){ //iterate through the characters in the message
  110.  
  111. letterNum=message.charCodeAt(i); //assign proper letter code (alphabet array)
  112.  
  113. if ((letterNum>=65) && (letterNum<=90)) temp=letterNum-65; //letters
  114.  
  115. else if (letterNum==46) temp=27; //.
  116.  
  117. else if (letterNum==32) temp=26; //space
  118.  
  119. else if (letterNum==33) temp=28; //!
  120.  
  121. else if ((letterNum>=49) && (letterNum<=57)) temp=letterNum-20; //[1-9]
  122.  
  123. else if (letterNum==48) temp=14; //zero
  124.  
  125. else if (letterNum==63) temp=43; //?
  126.  
  127. else if (letterNum==44) temp=38; //,
  128.  
  129. else if (letterNum==64) temp=39; //pause
  130.  
  131. else if (letterNum==35) temp=40; //flash effect
  132.  
  133. else if (letterNum==94) temp=41; //scroll up effect
  134.  
  135. else if (letterNum==95) temp=42; //sunrise effect
  136.  
  137. else if (letterNum==36) temp=44; //split effect
  138.  
  139. else continue;
  140.  
  141. for (ii=0; ii<alphabet[temp].length;ii++){ messageArray[columnCount]=alphabet[temp][ii];columnCount++;}
  142.  
  143. if ((temp!=39) && (temp!=40) && (temp!=41)) {messageArray[columnCount]="0000000";columnCount++;}
  144.  
  145. }
  146.  
  147. //make 'led screen' with block 0-49 on row 1, block 50-99 on row 2, block 100-149 on row 3, etc..
  148.  
  149. var b='';
  150.  
  151. for (var i=0; i<350; i++){//columns 50 columns x 7 rows
  152.  
  153. rowPos=0+3*(i>49)+3*(i>99)+3*(i>149)+3*(i>199)+3*(i>249)+3*(i>299);
  154.  
  155. colPos=0+150*(i>49)+150*(i>99)+150*(i>149)+150*(i>199)+150*(i>249)+150*(i>299);
  156.  
  157. b+= (NS) ? '<LAYER NAME="block' + i + '" LEFT="' + (startXPos+i*3-colPos) + '" TOP="' + (startYPos+rowPos) + '" VISIBILITY="show" WIDTH="2" HEIGHT="2" BGCOLOR="' + LEDoffColor + '"></LAYER>' : '<div id="block' + i + '" style="position:absolute; left:' + (startXPos+i*3-colPos) + 'px; top:' + (startYPos+rowPos) + 'px; background-color:' + LEDoffColor +'; height: 2px; width: 2px;font-size:2px;"></div>';
  158.  
  159. }
  160.  
  161. document.write(b);
  162.  
  163. var columnCounter=0; //keep track of postion of messageArray
  164.  
  165. var bb=new Array(); //store particular LED's dom element here
  166.  
  167. if (NS) { for (var i=0; i<350; i++) { bb[i]=getCSS("block"+i)}}
  168.  
  169. else {for (var i=0; i<350; i++){ bb[i]=getCSS("block"+i).style;}}
  170.  
  171. var isOn=new Array();for (var i=0; i<350; i++){ isOn[i]=0;} //keep track on on/off status of particular LED
  172.  
  173. onArray=new Array(); var onCount=0; //array size counter
  174.  
  175. function scroll(){
  176.  
  177. onCount=0;
  178.  
  179. if (NS) { for (var i=0; i<301; i+=50){ if (isOn[i]==1) { bb[i].bgColor=LEDoffColor; isOn[i]=0;} for (var ii=1; ii<50; ii+=7){
  180.  
  181. temp=i+ii;temp1=temp+1;temp2=temp+2;temp3=temp+3;temp4=temp+4;temp5=temp+5;temp6=temp+6;
  182.  
  183. if (isOn[temp]==1) {bb[temp].bgColor=LEDoffColor; isOn[temp]=0; bb[temp-1].bgColor=LEDonColor; isOn[temp-1]=1;}
  184.  
  185. if (isOn[temp1]==1) {bb[temp1].bgColor=LEDoffColor; isOn[temp1]=0; bb[temp].bgColor=LEDonColor; isOn[temp]=1;}
  186.  
  187. if (isOn[temp2]==1) {bb[temp2].bgColor=LEDoffColor; isOn[temp2]=0; bb[temp+1].bgColor=LEDonColor; isOn[temp+1]=1;}
  188.  
  189. if (isOn[temp3]==1) {bb[temp3].bgColor=LEDoffColor; isOn[temp3]=0; bb[temp2].bgColor=LEDonColor; isOn[temp2]=1;}
  190.  
  191. if (isOn[temp4]==1) {bb[temp4].bgColor=LEDoffColor; isOn[temp4]=0; bb[temp3].bgColor=LEDonColor; isOn[temp3]=1;}
  192.  
  193. if (isOn[temp5]==1) {bb[temp5].bgColor=LEDoffColor; isOn[temp5]=0; bb[temp4].bgColor=LEDonColor; isOn[temp4]=1;}
  194.  
  195. if (isOn[temp6]==1) {bb[temp6].bgColor=LEDoffColor; isOn[temp6]=0; bb[temp5].bgColor=LEDonColor; isOn[temp5]=1;}
  196.  
  197. }}}
  198.  
  199. else { for (var i=0; i<301; i+=50){ if (isOn[i]==1) { bb[i].backgroundColor=LEDoffColor; isOn[i]=0;} for (var ii=1; ii<50; ii+=7){
  200.  
  201. temp=i+ii;temp1=temp+1;temp2=temp+2;temp3=temp+3;temp4=temp+4;temp5=temp+5;temp6=temp+6;
  202.  
  203. if (isOn[temp]==1) {bb[temp].backgroundColor=LEDoffColor; isOn[temp]=0; bb[temp-1].backgroundColor=LEDonColor; isOn[temp-1]=1;}
  204.  
  205. if (isOn[temp1]==1) {bb[temp1].backgroundColor=LEDoffColor; isOn[temp1]=0; bb[temp].backgroundColor=LEDonColor; isOn[temp]=1;}
  206.  
  207. if (isOn[temp2]==1) {bb[temp2].backgroundColor=LEDoffColor; isOn[temp2]=0; bb[temp+1].backgroundColor=LEDonColor; isOn[temp+1]=1;}
  208.  
  209. if (isOn[temp3]==1) {bb[temp3].backgroundColor=LEDoffColor; isOn[temp3]=0; bb[temp2].backgroundColor=LEDonColor; isOn[temp2]=1;}
  210.  
  211. if (isOn[temp4]==1) {bb[temp4].backgroundColor=LEDoffColor; isOn[temp4]=0; bb[temp3].backgroundColor=LEDonColor; isOn[temp3]=1;}
  212.  
  213. if (isOn[temp5]==1) {bb[temp5].backgroundColor=LEDoffColor; isOn[temp5]=0; bb[temp4].backgroundColor=LEDonColor; isOn[temp4]=1;}
  214.  
  215. if (isOn[temp6]==1) {bb[temp6].backgroundColor=LEDoffColor; isOn[temp6]=0; bb[temp5].backgroundColor=LEDonColor; isOn[temp5]=1;}
  216.  
  217. }}}
  218.  
  219. temp=messageArray[columnCounter]; flag=temp.charAt(0);//GET NEW COLUMN
  220.  
  221. if (temp.charAt(1)=="1") {isOn[99]=1;} if (temp.charAt(2)=="1") {isOn[149]=1} if (temp.charAt(3)=="1") {isOn[199]=1}
  222.  
  223. if (temp.charAt(4)=="1") {isOn[249]=1} if (temp.charAt(5)=="1") {isOn[299]=1} if (temp.charAt(6)=="1") {isOn[349]=1}
  224.  
  225. if (flag=="0") {} else if (flag=="1") {isOn[49]=1;} else if (flag=="X") {pauseScroll();} else if (flag=="Y") {flashScroll();}
  226.  
  227. else if (flag=="D") {dropEffect();} else if (flag=="S") {sunRiseEffect();} else if (flag=="Q") {splitEffect();}
  228.  
  229. columnCounter++; if(columnCounter==columnCount) columnCounter=0;
  230.  
  231. }
  232.  
  233. //______________pause effect________________
  234.  
  235. function pauseScroll(){ clearInterval(loop); setTimeout("init()",3000);}
  236.  
  237. //______________onArray Section_____________
  238.  
  239. onArray=new Array(); var onCount=0; //array size counter
  240.  
  241. function makeOnArray(){ clearInterval(loop); onCount=0; for (var i=0; i<700; i++){if (isOn[i]==1) {onArray[onCount]=i; onCount++;};}//make onArray of 'on' LEDS
  242.  
  243. }//_________________________________
  244.  
  245. //_______________flash effect_______________
  246.  
  247. var flashCount=0;
  248.  
  249. function flashScroll(){ makeOnArray(); flashCount=0; if (NS) {setTimeout("flashItNS()",250);} else {setTimeout("flashIt()",250);}}
  250.  
  251. function flashItNS(){ flashCount++;
  252.  
  253. if (flashCount<14) {
  254.  
  255. if (flashCount % 2 == 0){ for (var i=0; i<onCount; i++){ isOn[onArray[i]]=0;bb[onArray[i]].bgColor=LEDoffColor;}}
  256.  
  257. else {for (var i=0; i<onCount; i++){isOn[onArray[i]]=1;bb[onArray[i]].bgColor=LEDonColor;}}
  258.  
  259. setTimeout("flashItNS()",250);
  260.  
  261. }
  262.  
  263. else {flashCount=0; setTimeout("init()",250);}
  264.  
  265. }
  266.  
  267. function flashIt(){ flashCount++;
  268.  
  269. if (flashCount<14) {
  270.  
  271. if (flashCount % 2 == 0){ for (var i=0; i<onCount; i++){ isOn[onArray[i]]=0;bb[onArray[i]].backgroundColor=LEDoffColor;}}
  272.  
  273. else {for (var i=0; i<onCount; i++){isOn[onArray[i]]=1;bb[onArray[i]].backgroundColor=LEDonColor;}}
  274.  
  275. setTimeout("flashIt()",250);
  276.  
  277. }
  278.  
  279. else {flashCount=0; setTimeout("init()",250);}
  280.  
  281. }//_________________________________
  282.  
  283. //____________scroll up effect______________
  284.  
  285. dropArray=new Array();
  286.  
  287. function dropEffect(){makeOnArray(); for (var i=0; i<onCount; i++){ dropArray[i]=onArray[i]; } if (NS) {dropItNS();} else {dropIt();}}
  288.  
  289. var dropCount=0;
  290.  
  291. function dropItNS(){
  292.  
  293. if (dropCount<7){for (var i=0; i<onCount; i++){ bb[dropArray[i]].bgColor=LEDoffColor; }
  294.  
  295. for (var i=0; i<onCount; i++){ temp=dropArray[i]; temp-=50;if (temp<0) temp+=350;bb[temp].bgColor=LEDonColor; dropArray[i]=temp;}
  296.  
  297. dropCount++; setTimeout("dropItNS()",100);
  298.  
  299. } else {dropCount=0;setTimeout("init()",100);}
  300.  
  301. }//_________________________________
  302.  
  303. function dropIt(){
  304.  
  305. if (dropCount<7){ for (var i=0; i<onCount; i++){ bb[dropArray[i]].backgroundColor=LEDoffColor; }
  306.  
  307. for (var i=0; i<onCount; i++){ temp=dropArray[i]; temp-=50; if (temp<0) temp+=350; bb[temp].backgroundColor=LEDonColor; dropArray[i]=temp;}
  308.  
  309. dropCount++; setTimeout("dropIt()",100);
  310.  
  311. } else {dropCount=0;setTimeout("init()",100);}
  312.  
  313. }//_________________________________
  314.  
  315. //____________sunrise effect________________
  316.  
  317. sunRiseCounter=0;sunRiseArray=new Array();
  318.  
  319. sunRiseArray[0]=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);//Hills
  320.  
  321. sunRiseArray[1]=new Array(224,225,226); sunRiseArray[2]=new Array(174,175,176,177); sunRiseArray[3]=new Array(173,124,125,126,127,128,178); sunRiseArray[4]=new Array(172,123,74,75,76,77,129); sunRiseArray[5]=new Array(171,122,73,24,25,26,27,78,79,130);
  322.  
  323. function sunRiseEffect() { makeOnArray(); for (var i=0; i<onCount; i++){ isOn[onArray[i]]=0; if (!NS) {bb[onArray[i]].backgroundColor=LEDoffColor;} else {bb[onArray[i]].bgColor=LEDoffColor;}}
  324.  
  325. setTimeout("riseEffectUp()",1000);}
  326.  
  327. function riseEffectUp() {
  328.  
  329. if (!NS) { for (var ii=0; ii<sunRiseArray[sunRiseCounter].length; ii++) {isOn[sunRiseArray[sunRiseCounter][ii]]=1;bb[sunRiseArray[sunRiseCounter][ii]].backgroundColor=LEDonColor;}}
  330.  
  331. else {for (var ii=0; ii<sunRiseArray[sunRiseCounter].length; ii++) {isOn[sunRiseArray[sunRiseCounter][ii]]=1;bb[sunRiseArray[sunRiseCounter][ii]].bgColor=LEDonColor;}}
  332.  
  333. sunRiseCounter++; if (sunRiseCounter>5) {sunRiseCounter=5;setTimeout("riseEffectDown()",2000);} else {setTimeout("riseEffectUp()",250);}}
  334.  
  335. function riseEffectDown() {
  336.  
  337. if (!NS) {for (var ii=0; ii<sunRiseArray[sunRiseCounter].length; ii++) {isOn[sunRiseArray[sunRiseCounter][ii]]=0;bb[sunRiseArray[sunRiseCounter][ii]].backgroundColor=LEDoffColor;}}
  338.  
  339. else {for (var ii=0; ii<sunRiseArray[sunRiseCounter].length; ii++) {isOn[sunRiseArray[sunRiseCounter][ii]]=0;bb[sunRiseArray[sunRiseCounter][ii]].bgColor=LEDoffColor;}}
  340.  
  341. sunRiseCounter--; if (sunRiseCounter<1) {sunRiseCounter=0;setTimeout("init()",1500);}
  342.  
  343. else {setTimeout("riseEffectDown()",250);}
  344.  
  345. }//____________________________________
  346.  
  347. //____________split scroll effect___________
  348.  
  349. var splitCount=0;
  350.  
  351. function splitEffect() { makeOnArray(); for (var i=0; i<onCount; i++) { dropArray[i]=onArray[i]; }
  352.  
  353. if (NS) {setTimeout("splitNS()",55);} else if (IE) {setTimeout("splitIt()",55);} else {setTimeout("splitIt()",100);}
  354.  
  355. }
  356.  
  357. function splitIt(){ for (i=0;i<onCount;i++){ temp=dropArray[i];
  358.  
  359. if (temp<150) { if (temp==100) {bb[temp].backgroundColor=LEDoffColor; temp=149; bb[temp-1].backgroundColor=LEDonColor;}
  360.  
  361. else if (temp==50) {bb[temp].backgroundColor=LEDoffColor; temp=99; bb[temp-1].backgroundColor=LEDonColor;}
  362.  
  363. else if (temp==0) {bb[temp].backgroundColor=LEDoffColor; temp=49; bb[temp-1].backgroundColor=LEDonColor;}
  364.  
  365. else {bb[temp].backgroundColor=LEDoffColor; bb[temp-1].backgroundColor=LEDonColor;}
  366.  
  367. dropArray[i]=temp-1; }
  368.  
  369. else { if (temp==199) {bb[temp].backgroundColor=LEDoffColor; temp=200; bb[temp+1].backgroundColor=LEDonColor;}
  370.  
  371. else if (temp==349) {bb[temp].backgroundColor=LEDoffColor; temp=300; bb[temp+1].backgroundColor=LEDonColor;}
  372.  
  373. else if (temp==299) {bb[temp].backgroundColor=LEDoffColor; temp=250; bb[temp+1].backgroundColor=LEDonColor;}
  374.  
  375. else if (temp==249) {bb[temp].backgroundColor=LEDoffColor; temp=200; bb[temp+1].backgroundColor=LEDonColor;}
  376.  
  377. else {bb[temp].backgroundColor=LEDoffColor; bb[temp+1].backgroundColor=LEDonColor;}
  378.  
  379. dropArray[i]=temp+1; }
  380.  
  381. } splitCount++; if (splitCount<49) {if (IE) {setTimeout("splitIt()",55);} else {setTimeout("splitIt()",100);} } else {splitCount=0; init();}
  382.  
  383. }
  384.  
  385. function splitNS(){
  386.  
  387. for (i=0;i<onCount;i++){ temp=dropArray[i];
  388.  
  389. if (temp<150) { if (temp==100) {bb[temp].bgColor=LEDoffColor; temp=149; bb[temp-1].bgColor=LEDonColor;}
  390.  
  391. else if (temp==50) {bb[temp].bgColor=LEDoffColor; temp=99; bb[temp-1].bgColor=LEDonColor;}
  392.  
  393. else if (temp==0) {bb[temp].bgColor=LEDoffColor; temp=49; bb[temp-1].bgColor=LEDonColor;}
  394.  
  395. else {bb[temp].bgColor=LEDoffColor; bb[temp-1].bgColor=LEDonColor;}
  396.  
  397. dropArray[i]=temp-1; }
  398.  
  399. else { if (temp==199) {bb[temp].bgColor=LEDoffColor; temp=200; bb[temp+1].bgColor=LEDonColor;}
  400.  
  401. else if (temp==349) {bb[temp].bgColor=LEDoffColor; temp=300; bb[temp+1].bgColor=LEDonColor;}
  402.  
  403. else if (temp==299) {bb[temp].bgColor=LEDoffColor; temp=250; bb[temp+1].bgColor=LEDonColor;}
  404.  
  405. else if (temp==249) {bb[temp].bgColor=LEDoffColor; temp=200; bb[temp+1].bgColor=LEDonColor;}
  406.  
  407. else {bb[temp].bgColor=LEDoffColor; bb[temp+1].bgColor=LEDonColor;}
  408.  
  409. dropArray[i]=temp+1; }
  410.  
  411. } splitCount++; if (splitCount<49) {setTimeout("splitNS()",55);} else {splitCount=0; init();}
  412.  
  413. }//___________________________________
  414.  
  415. function init(){ if (NS) {loop=setInterval("scroll()",55);} else if (IE){loop=setInterval("scroll()",55);} else {loop=setInterval("scroll()",100);}}
  416.  
  417. </script>


Nu is het zo dat het led paneel maar 50 'LED'-jes per rij heeft en ik zou dat graag veranderen naar 100 'LED'-jes. Ik ben totaal niet goed in Javascript dus als jullie me willen helpen?

0 antwoorden

Gesponsorde links
Er zijn nog geen reacties op dit bericht.
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.344s