I am new to javascript, so please forgive me if this question is really basic. I have one problem with what I'm trying to do.
I have an image on the page.
I want to put a black box on top of the image (presumably using CSS), i.e. hide image.
Then, using JavaScript, when the mouse moves around the CSS black square, the black box disappears showing the image.
I know how to make fade out using JavaScript, but I can’t get the CSS field on top of the image ...
Thank you if you can help by telling me how to do this.
Notice that in my efforts I created a field using CSS and then added an image to the page, but the image just deleted the CSS field.
source
share