Advertisement
BrU32

JS Christmas Light Bulb Random Color Gen SRC

Jan 11th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <script>
  2. var possible = "FABCGDEGHIJKLMNOP0QRSTUVWXYZ";
  3. var text="";
  4. var text2="";
  5. var text3="";
  6. for(var i=0; i<26; i++){
  7. text=possible.charAt(Math.floor(Math.random()*possible.length))
  8. text2=possible.charAt(Math.floor(Math.random()*possible.length))
  9. text3=possible.charAt(Math.floor(Math.random()*possible.length))
  10. document.writeln('<body bgcolor='+text+text2+text3+'/>');
  11. }
  12. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement