Page 1 of 1

1337 b04rd h4x

Posted: Fri May 30, 2008 9:44 pm
by Kamekku
Copy and paste into url and hit enter:
javascript:var colorinterval;var num=0;var num1=0;var num2=0;var num3=0;var rr,gg,bb;function startup(){colorinterval = setInterval("colorchange()", 50);}function colorchange(){if (num<=30) {num1+=10;if(num1>=255){num1=255;}}else{if (num<=60) {num2+=10;if(num2>=255){num2=255;}}else{if (num<=90) {num1-=10;if(num1<=0){num1=0;}}else{if (num<=120){num3+=10;if(num3>=255){num3=255;}}else{if (num<=150){num2-=10;if(num2<=0){num2=0;}}else{if (num<=180){num1+=10;if(num1>=255){num1=255;}}else{if (num<=210){num3-=10;num1-=10;if(num3<=0){num3=0;}if(num1<=0){num1=0;}}else{if (num>=210){num=1;}}}}}}}}rr = dec2hex(num1);gg = dec2hex(num2);bb = dec2hex(num3);document.body.style.backgroundColor = "#" + rr + gg + bb;num+=1;}function dec2hex(number){var hex_array=new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");var hext=0;var hexo=0;for(;number!=0;){if (number>=16){number-=16;hext+=1;}if (number<=15){number=0;hexo=number;}}number=hex_array[hext]+hex_array[hexo];return number;}startup();
Courtesy of a dude on another message board I go to whose username is barbarianbob.

Re: 1337 b04rd h4x

Posted: Fri May 30, 2008 10:58 pm
by Toff
*lol* Cool, really psychedelic! Ether must learn to write this kind of stuff.

Re: 1337 b04rd h4x

Posted: Sat May 31, 2008 4:45 am
by iAmTubbie
javascript:var colorinterval;var num=0;var num1=0;var num2=0;var num3=0;var rr,gg,bb;function startup(){colorinterval = setInterval("colorchange()", 50);}function colorchange(){if (num<=30) {num1+=10;if(num1>=255){num1=255;}}else{if (num<=60) {num2+=10;if(num2>=255){num2=255;}}else{if (num<=90) {num1-=10;if(num1<=0){num1=0;}}else{if (num<=120){num3+=10;if(num3>=255){num3=255;}}else{if (num<=150){num2-=10;if(num2<=0){num2=0;}}else{if (num<=180){num1+=10;if(num1>=255){num1=255;}}else{if (num<=210){num3-=10;num1-=10;if(num3<=0){num3=0;}if(num1<=0){num1=0;}}else{if (num>=210){num=1;}}}}}}}}rr = dec2hex(num1);gg = dec2hex(num2);bb = dec2hex(num3);document.body.style.backgroundColor = "#" + rr + gg + bb;num+=1;}function dec2hex(number){var hex_array=new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");var hext=0;var hexo=0;for(;number!=0;){if (number>=16){number-=16;hext+=1;}if (number<=15){number=0;hexo=number;}}number=hex_array[hext]+hex_array[hexo];return number;}startup();

Re: 1337 b04rd h4x

Posted: Sat May 31, 2008 4:45 am
by iAmTubbie
NUU dam i thoguth it would work here f3 i pasted in the address bar and it turned soo colourfullly i was tripped out O_O

Re: 1337 b04rd h4x

Posted: Fri Jun 06, 2008 5:05 pm
by Etherpendant
WHOAAAA! O_O

I understood a bit of that javascript, it would help if it was not mushed together. Haven't learning some of those functions there though.

Re: 1337 b04rd h4x

Posted: Fri Jun 06, 2008 6:48 pm
by OddMike
WHOA!!!!!