I’m sorry for my ignorance; I’m a beginner here. I am stuck, and the code is not working. I have used a validator, which makes me more confused. I can’t get the div(message) image to change to different images upon hovering.
I’ve tried everything I can think of, but I keep getting the following errors for this code: this code is not working at all; sorry, I am taking a course, and the teacher is all over the place and not that helpful. I have tried so many different styles of syntaxes. I nailed the other events but with the images and hovering effect, I can’t seem to get it:
Line 1, Column 1: Expected an assignment or function call and instead saw an expression.
Line 1, Column 8: Missing semicolon.
Line 1, Column 23: Missing semicolon.
Line 2, Column 49: Missing semicolon.
Line 5, Column 23: ‘function closure expressions’ is only available in Mozilla JavaScript extensions (use moz option).
Where am I missing semicolons?
The image display it needs to return back to onmouseout.
Hover over an image below to display image.
function onmouseenter()
document.getElementById(‘img’).innerHTML = “img”
function onmouseleave()
document.getElementById(“image”).innerHTML = “image”