Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Color Scale</title>
  6. </head>
  7.  
  8. <body>
  9. <table border="0" cellspacing="0" cellpadding="7">
  10. <tr>
  11. <script>
  12. for (i = 0; i <= 255; i+= 25 ) {
  13. document.write("<th style= 'background-color:rgb(255,"+i+","+i+");'>"+i+"</th>");
  14. }
  15. </script>
  16. </tr>
  17. <tr>
  18. <script>
  19. for (i = 0; i <= 255; i+= 25) {
  20. document.write("<th style= 'background-color:rgb("+i+",255,"+i+");'>"+i+"</th>");
  21. }
  22. </script>
  23. </tr>
  24. <tr>
  25. <script>
  26. for (i = 0; i <= 255; i+= 25) {
  27. document.write("<th style= 'background-color:rgb("+i+","+i+",255);'>"+i+"</th>");
  28. }
  29. </script>
  30. </tr>
  31. <tr>
  32. <script>
  33. for (i = 0; i <= 255; i+= 25) {
  34. document.write("<th style= 'background-color:rgb(255,255,"+i+");'>"+i+"</th>");
  35. }
  36. </script>
  37. </tr>
  38. <tr>
  39. <script>
  40. for (i = 0; i <= 255; i+= 25) {
  41. document.write("<th style= 'background-color:rgb("+i+",255,255);'>"+i+"</th>");
  42. }
  43. </script>
  44. </tr>
  45. <tr>
  46. <script>
  47. for (i = 0; i <= 255; i+= 25) {
  48. document.write("<th style= 'background-color:rgb(255,"+i+",255);'>"+i+"</th>");
  49. }
  50. </script>
  51. </tr>
  52.  
  53. </table>
  54. </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement