SHARE
TWEET

Untitled

a guest Feb 21st, 2020 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top