Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script>
- function changecolor(){
- var r=Math.floor(Math.random() * 255);
- document.getElementById("id").style.backgroundColor="rgb("+r+","+r+","+r+")";
- }
- </script>
- </head>
- <body id="id" >
- <script>
- <!-- setInterval(function(){changecolor()},500); -->
- setInterval(changecolor,200);
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment