login  Naam:   Wachtwoord: 
Registreer je!
 Forum

LED paneel

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

Nu is het zo dat er maar 50 'LED'-jes op een rij staan, en ik zou dat graag veranderen naar 100 'LED'-jes. Ik heb al verscheidene pogingen gedaan om het script te editen maar ik ben niet zo goed in Javascript en het is me dus nog niet gelukt 

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.213s