Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>Make use of JavaScript Assignment</title>
- <meta charset="utf-8">
- <script>
- function mouseOver(bulb) {
- bulb.src = "light_bulb_on.png";
- }
- function mouseAway(bulb) {
- bulb.src = "light_bulb_off.png";
- }
- </script>
- </head>
- <body>
- <img id="light_bulb" src="light_bulb_off.png" onmouseover=mouseOver(this)
- onmouseout=mouseAway(this) width="189" height="300">
- <p>Andrew Stevens</p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement