Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.55 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <title>Make use of JavaScript Assignment</title>
  5.     <meta charset="utf-8">
  6.  
  7.     <script>
  8.         function mouseOver(bulb) {
  9.            
  10.             bulb.src = "light_bulb_on.png";
  11.         }
  12.  
  13.         function mouseAway(bulb) {
  14.             bulb.src = "light_bulb_off.png";
  15.         }
  16.  
  17.     </script>
  18.  
  19. </head>
  20. <body>
  21.  
  22.     <img id="light_bulb"  src="light_bulb_off.png" onmouseover=mouseOver(this)
  23.    onmouseout=mouseAway(this) width="189" height="300">
  24.  
  25.     <p>Andrew Stevens</p>
  26. </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement