Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.32 KB | None | 0 0
  1. <html>
  2. <body>
  3.  
  4. <html>
  5. <body>
  6.  
  7.     <style>
  8.     #pform {
  9.     position:absolute;
  10.     top:10px;
  11.     left:100px;
  12.     display:none;
  13.     border:2px solid blue;
  14.     padding:8px;
  15.     }
  16.     </style>
  17.  
  18. <script type="text/javascript">
  19.  
  20. function prompt() {
  21. // get field to be validated
  22. var pf = document.getElementById( 'pForm' );
  23. pf.style.display = 'block';
  24. }
  25.  
  26. //document.getElementById( 'pForm' );
  27.  
  28.  
  29.  
  30. //name = prompt("ddd")
  31. //document.write("Hello," +ddd+);
  32.  
  33. function Madlib() {
  34. document.write("Today in" +Period +Class +"Class" +Name +"asked" +Professor +"if they could" +Verb +"to the" +Place +"." +Professor +"responded to their request by calling them a" +Adjective +BodyPart +".");
  35. }
  36.  
  37. </script>
  38.  
  39. <form>
  40. <input type="button" value="prompt" onclick="prompt()" />
  41.  
  42. </form>
  43. <div id="p">
  44. <form id="pForm">
  45. Period: <input type="text" name="Period" /><br><br>
  46. Class: <input type="text" name="Class" /><br><br>
  47. Name: <input type="text" name="Name" /><br><br>
  48. Professor: <input type="text" name="Professor" /><br><br>
  49. Verb: <input type="text" name="Verb" /><br><br>
  50. Place: <input type="text" name="Place" /><br><br>
  51. Adjective: <input type="text" name="Adjective" /><br><br>
  52. Body Part: <input type="text" name="BodyPart" /><br><br>
  53. <input type="button" value="Enter" onclick="Madlib()" />
  54. </form>
  55. </div>
  56.  
  57. </body>
  58. </html>
  59.  
  60. </body>
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement