Carl Pericles• 400
@CarlPericles18
Posted
Hey, you got the right idea but for your CSS use the appropriate width for the pictures, and for JS use let or const I wouldn't recommend var and use eventListner instead of mouseover also look into if and then.
var e = document.getElementById('parent'); e.onmouseover = function() { document.getElementById('popup').style.display = 'block'; } e.onmouseout = function() { document.getElementById('popup').style.display = 'none'; }
0