Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>
  2.  
  3. <title>Laugh-o-rama</title>
  4.  
  5. <link rel='stylesheet' type='text/css'fF href='./Laugh-o-rama_files/quiz.css'>
  6.  
  7. <script type='text/javascript'>
  8.  
  9. function  reveal_Answer(answer) {
  10.     debugger;
  11.     var currentColor = document.defaultView.getComputedStyle(answer,null).getPropertyValue('color');
  12.     if (currentColor == "rgb(0, 0, 0)") {
  13.         answer.style.color='#339999';
  14.     }
  15.     else {
  16.         answer.style.color='#000000';
  17.     }
  18. }
  19.  
  20. </script><style type='text/css'></style>
  21.  
  22.  
  23. <h1>LAUGH AWAY </h1>
  24.  
  25. <p class='q'>Q: I'm tall when I am young and I am short when I'm old. What am I?</p>
  26.  
  27. <p class='a' onclick='reveal_Answer(this)'>A: Candle</p>
  28.  
  29. <p class='q'>Q: What is the longest word in the dictionary?</p>
  30.  
  31. <p class='a' onclick='reveal_Answer(this)'>A: Smiles, because there is a mile between each letter S </p>
  32.  
  33. <p class='q'>Q: What travels around the world but stays in one spot?</p>
  34.  
  35. <p class='a' onclick='reveal_Answer(this)'>A: A stamp!</p>
  36.  
  37.  
  38.  
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement