На jQuery
<script src="http://code.jquery.com/jquery-latest.js"></script>
<style>
#menu {
margin-top: -5px;
width: 180px;
height: 60px;
background-repeat : no-repeat;}
#menu span {
text-align:left;
display:block;
color:#000000;
margin: 7px 0;
padding: 11px;
}
#submenu, #menu span {
border-radius:5px;
-webkit-border-radius:5px;
-khtml-border-radius:5px;
-moz-border-radius:5px;
-o-border-radius:5px;
background:#efeff0;
}
#menu .tabactive {
color: #000000;
background:#777777;
}
#submenu {
padding: 3px;
height: 180px;
text-align: center;
font-size: 12px;
width: 540px;
}
.submenutext {
display: none;
height: 40px;
}
</style>
<center><table id="tbl" style="width: 800px">
<tbody>
<tr>
<td valign=top>
<div id="menu"> <b>
<span alt="#sm1" style="cursor: pointer;">Добро пожаловать</span>
<span alt="#sm2" style="cursor: pointer;">Новости форума</span>
<span alt="#sm3" style="cursor: pointer;">Администрация</span>
<span alt="#sm4" style="cursor: pointer;">Баннеры партнеров</span>
</b>
</div>
</td>
<td id="MenuTxT" align="center" valign="top">
<div id="submenu" align="center">
<div id="sm1" class="submenutext" style="display:block;">
<br/><br/>
текст добро пожаловать
</div>
<div id="sm2" class="submenutext"><br /><br />
текст новости форума
</div>
<div id="sm3" class="submenutext"><br /><br />
текст Администрация
</div>
<div id="sm4" class="submenutext"><br /><br />
текст баннеры партнеров
</div>
</div>
</td>
</tr>
</tbody>
</table></center>
<script type="text/javascript">
$(document).ready(function() {
$("#MenuTxT div.submenutext").hide();
$("#MenuTxT div.submenutext:first").show();
$("#menu span").click(function() {
$("#menu span").removeClass("tabactive");
$(this).addClass("tabactive");
$("#MenuTxT div.submenutext").hide();
var activeDiv = $(this).attr("alt");
$(activeDiv).fadeIn();
return false; });
});
</script>
span alt=