anon

myhtml

Nov 16th, 2010
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.88 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Color Flasher</title>
  4. <script>
  5.  
  6. After the user
  7. presses the Click for
  8. Story button, the
  9. text box displays a
  10. silly story.
  11. 66
  12. JavaScript Programming for the Absolute Beginner
  13. // Demonstrates use of the bgColor method
  14. document.bgColor = "red";
  15. alert("ready for another color?");
  16. document.bgColor = "orange";
  17. alert("ready for another color?");
  18. document.bgColor = "yellow";
  19. alert("ready for another color?");
  20. document.bgColor = "green";
  21. alert("ready for another color?");
  22. document.bgColor = "blue";
  23. alert("ready for another color?");
  24. document.bgColor = "indigo";
  25. alert("ready for another color?");
  26. document.bgColor = "violet";
  27. alert("ready for another color?");
  28. document.bgColor = "black";
  29. alert("ready for another color?");
  30. document.bgColor = "white";
  31. </script>
  32. </head>
  33. <body>
  34. <center><center>
  35. <h1>Color Flasher<br></h1>
  36. </center>
  37. <hr>
  38. </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment