Advertisement
BrU32

JS Random Color Gen/BG Flash/Seizure SRC

May 14th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <body onload="Test();">
  2. <script>
  3. function Test(){
  4. setInterval("GenStrongPass()",50);
  5. }
  6. </script>
  7. <script>
  8. function styleBGColor(color){
  9. document.body.style.backgroundColor=(color);
  10. }
  11. function GenStrongPass()
  12. {
  13. var text = "";
  14. var possible = "FABCGDEG0123456789";
  15. for(var i=0; i!=6; i++)
  16. text+=possible.charAt(Math.floor(Math.random()*possible.length));
  17. document.body.style.backgroundColor=(text);
  18. document.write(text+"\n<br>");
  19. }
  20. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement