Advertisement
BrU32

JS Random Hexadecimal Color Code Gen Final!!

Jun 22nd, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <script>
  2. var p1=prompt("Enter Amount Of Colors:");
  3. for(var i1=0;i1!=p1;i1++){
  4. setTimeout(GenStrongPass(),1000);
  5. }
  6. function GenStrongPass()
  7. {
  8. var text = "";
  9. var possible = "FABCGDE01234567";
  10. for(var i=0; i!=6; i++)
  11. text+=possible.charAt(Math.floor(Math.random()*possible.length));
  12. document.write("<body bgcolor="+text+"/>");
  13. document.write("<font color="+""+text+">#"+text+"<br>");
  14. }
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement