If you hide the div elements, they won't be able to trigger the mouseover
event.
To make them respond to the event, you'll need to listen for it on another visible element.
One approach is to wrap your hidden divs in container divs that are always visible. Then, you can handle the mouseover
event on these containers.
<div style="width: 80px; height: 20px; background-color: red;"
onmouseover="document.getElementById('div1').style.display = 'block';">
<div id="div1" style="display: none;">Text</div>
</div>
If you also want the div to disappear when the mouse leaves the container div, you can listen for the mouseout
event:
onmouseout="document.getElementById('div1').style.display = 'none';"