Advertisement
BrU32

Untitled

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