A oto kod JavaScript:
Html:function wyswietl(co) {
var ile = 5; for (var i = 1; i <= ile; i++)
if(co != i)
document.getElementById("w_" + i).style.display = 'none';
else
document.getElementById("w_" + i).style.display = 'block';
}
CSS:<a href="#" onmouseover="wyswietl(1);">Serwis</a>
<div id="w_1">
<div><a href="index.php">Strona Główna</a></div>
<div><a href="#">Redakcja</a></div>
<div><a href="#">Reklama</a></div>
</div>
#w_1, #w_2, #w_3, #w_4, #w_5 {display: none; float: left; clear: both; margin: 0; padding: 0; border: solid #404040; border-width: 1px 1px 0 1px; position: absolute;}
