Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. <!doctype html>
  2.  
  3. <html>
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>DynsmicW1</title>
  7. <link rel="stylesheet" type="text/css" href="STYLE/style.css" />
  8.  
  9. <div id="global divide">
  10.  
  11. <script language="javascript" type="text/javascript">
  12.  
  13.  
  14. function UserName(names)
  15. {
  16. alert( names );
  17. }
  18.  
  19. function Difficulty_select(level)
  20. {
  21.  
  22. switch (level)
  23. {
  24. case "e":
  25. document.body.style.backgroundColor="#0000FF";
  26. break;
  27. case "m":
  28. document.body.style.backgroundColor="#FFDD66";
  29. break;
  30. case "h":
  31. document.body.style.backgroundColor="#660000";
  32. break;
  33. }
  34. }
  35.  
  36. </script>
  37. </head>
  38.  
  39. <body>
  40. <div height=400 width=600>
  41. <h1>WHatTheWeEk1</h1>
  42.  
  43.  
  44.  
  45. <div id= "BG">
  46. <img src="images/bground.jpg" alt="BG" height=400 width=600/>
  47. </div>
  48. <div id= "pagecontent">
  49. <form id="myForm" action="#">
  50.  
  51. <p>
  52.  
  53. UserName:
  54.  
  55. <input type="text" name="UserID" id="UserID" value="" size="10" maxlength="9" onBlur="UserName(this.value)" />
  56. <!--Using this form, add a javascript function, triggered when the user adds their first name, that alerts a hello, giving their name.-->
  57.  
  58. </p>
  59.  
  60. <p>
  61. Circle Colour:
  62.  
  63. <select name="Circle_colour" onChange = "PlayerImage(this.value)" >
  64.  
  65. <option value="Red"> Red </option>
  66. <option value="Green"> Green </option>
  67. <option value="Blue"> Blue </option>
  68. <option value="Black"> Black </option>
  69. <option value="Yellow"> Yellow </option>
  70.  
  71. </select>
  72. </p>
  73. <p>
  74. Difficulty Level<br>
  75. <i>
  76. <input name="difficulty" type="radio" value="e" onChange="Difficulty_select(this.value)"/> easy<br>
  77. <input name="difficulty" type="radio" value="m" onChange="Difficulty_select(this.value)"/> medium<br>
  78. <input name="difficulty" type="radio" value="h" onChange="Difficulty_select(this.value)"/> hard
  79. </i>
  80. </p>
  81. </form>
  82. <div id= "instructions">
  83. <b> Instructions:</b>
  84. <p> Use the "w", "s", "a" and "d" keys to move the circle. Catch the Square in the quickest time to get your name on the leader board!
  85.  
  86. </div>
  87.  
  88. </div>
  89. </div>
  90.  
  91. </body>
  92. </div>
  93. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement