Danke! Hab eine Lösung gefunden:
function showInhalt(id) {
document.getElementById('hero'+id).style.display = 'block';
if( alterInhalt != id){
document.getElementById('hero'+alterInhalt).style. display = 'none';
}
alterInhalt = id;
}
...
<div ...onmouseover="showInhalt('main1')">
|