1
хмтл вверх
Код:
<style>
#menu {width: 600px; height: 55px; margin-top: 10px;}
#menu span {
width: 115px;
text-decoration: none;
}
#submenu {
padding: 5px;
height: 220px;
text-align: center;
width: 604px;
}
.submenutext {
display: none;
height: 60px;
}
</style>объяв
Код:
<center>
<table border="0" cellspacing="2" cellpadding="2" style="background: url(http://uploads.ru/i/R/d/k/RdkCL.png) no-repeat top center; height: 340px; width: 680px;">
<tbody><tr>
<td align="center" style="height: 60px;">
<!--- Кнопки меню --->
<div id="menu">
<span alt=#sm1 style="cursor: pointer;"><img src="http://uploads.ru/i/Q/3/i/Q3iX5.png" alt="" width="115" height="50" border="0"></span>
<span alt=#sm2 style="cursor: pointer;"><img src="http://uploads.ru/i/f/p/c/fpcA8.png" alt="" width="115" height="50" border="0"></span>
<span alt=#sm3 style="cursor: pointer;"><img src="http://uploads.ru/i/6/U/k/6UkV8.png" alt="" width="115" height="50" border="0"></span>
<span alt=#sm4 style="cursor: pointer;"><img src="http://uploads.ru/i/F/v/A/FvArK.png" alt="" width="115" height="50" border="0"></span>
<span alt=#sm5 style="cursor: pointer;"><img src="http://uploads.ru/i/D/5/r/D5rCj.png" alt="" width="115" height="50" border="0"></span>
<!--- Конец кнопок меню --->
</td>
</tr>
<tr><td align="center" id="MenuTxT" valign="top">
<div id="submenu" align="center">
<!--- контент событий --->
<div id="sm1" class="submenutext" style="display:block;">
<div style="border-bottom: 2px dotted #925E3D; border-top: 2px dotted #925E3D; width: 600px; height: 215px; overflow: auto; overflow-x: hidden; padding: 2px;">
Содержимое кнопки события
</div>
</div>
<!--- Контент времени и даты --->
<div id="sm2" class="submenutext">
Контент 2-й кнопки
</div>
<!--- Контент погоды --->
<div id="sm3" class="submenutext">
<div style="border-bottom: 2px dotted #925E3D; border-top: 2px dotted #925E3D; width: 600px; height: 215px; overflow: auto; overflow-x: hidden; padding: 2px;">
Содержимое кнопки погода
</div>
</div>
<!--- Контент навигации --->
<div id="sm4" class="submenutext">
<center>
<table cellpadding="0" cellspacing="0" width="520" height="230" border="0">
<tr height="25%">
<td width="33%">
<a href="http://reilana.mybb.ru/viewtopic.php?id=3"><img src="http://i25.fastpic.ru/big/2011/0818/bf/c6af7a78bf11fca55f24a062074bbabf.png"></a>
</td>
<td width="33%" rowspan="4">
<div id="yoblako" align="center"><noindex>
<a style="font-size:12pt;" href="ссылка" rel="nofollow" class="eTag eTagGr8">Навигация 1</a>
<a style="font-size:12pt;" href="ссылка" rel="nofollow" class="eTag eTagGr8">Навигация 2</a>
<a style="font-size:12pt;" href="ссылка" rel="nofollow" class="eTag eTagGr8">Навигация 3</a>
<a style="font-size:12pt;" href="ссылка" rel="nofollow" class="eTag eTagGr8">Навигация 4</a>
<a style="font-size:12pt;" href="ссылка" rel="nofollow" class="eTag eTagGr8">Навигация 5</a>
<a style="font-size:12pt;" href="ссылка" rel="nofollow" class="eTag eTagGr8">Навигация 6</a>
<a style="font-size:12pt;" href="ссылка" rel="nofollow" class="eTag eTagGr8">Навигация 7</a>
</noindex></div>
</td>
<td width="33%">
<a href="http://reilana.mybb.ru/viewtopic.php?id=23"><img src="http://i24.fastpic.ru/big/2011/0818/f7/45667f3da29fea2e079958bc66b865f7.png"></a>
</td></tr>
<tr height="25%">
<td>
<a href="http://reilana.mybb.ru/viewtopic.php?id=2#p4216"><img src="http://i24.fastpic.ru/big/2011/0818/19/a3ea063decff4c9a8bfb83f098673e19.png"></a>
</td>
<td>
<a href="http://reilana.mybb.ru/viewtopic.php?id=141"><img src="http://i24.fastpic.ru/big/2011/0818/a9/f546baa615643924c60a13deb668cfa9.png"></a>
</td></tr>
<tr height="25%">
<td>
<a href="http://reilana.mybb.ru/viewtopic.php?id=4"><img src="http://i26.fastpic.ru/big/2011/0818/94/6bd93b0de2e8a5684eaa28d15bd05194.png"></a>
</td>
<td>
<a href="http://reilana.mybb.ru/viewtopic.php?id=26"><img src="http://i24.fastpic.ru/big/2011/0818/fe/1d91356a21c5afb131a1001f96b953fe.png"></a>
</td></tr>
<tr valign="top" height="25%">
<td>
<a href="ссылка"><img src="http://i24.fastpic.ru/big/2011/0818/73/fc69b9746be5c726db356bc6a53d4e73.png"></a>
</td>
<td>
<a href="http://reilana.mybb.ru/viewtopic.php?id=10"><img src="http://i26.fastpic.ru/big/2011/0818/c4/bc0fe250f8503551daf6c6903f4f2bc4.png"></a>
</td></tr>
</table>
</center>
</div>
<!--- Контент администрации --->
<div id="sm5" class="submenutext">
<table align="center" width="100%" height="200" cellspacing="1" cellpadding="1" border="1" style="margin-top: 20px;">
<tr>
<td width="20%" align="center" style="height: 40px;" valign="bottom">ник 1</td>
<td width="20%" align="center" style="height: 40px;" valign="bottom">ник 2</td>
<td width="20%" align="center" style="height: 40px;" valign="bottom">ник 3</td>
<td width="20%" align="center" style="height: 40px;" valign="bottom">ник 4</td>
<td width="20%" align="center" style="height: 40px;" valign="bottom">ник 5</td>
</tr>
<tr>
<td width="20%" align="center"><a href="ссылка на профиль"><img src="адрес аватара" alt="аватар 1" border="0" style="width: 100%;"></a></td>
<td width="20%" align="center"><a href="ссылка на профиль"><img src="адрес аватара" alt="аватар 2" border="0" style="width: 100%;"></a></td>
<td width="20%" align="center"><a href="ссылка на профиль"><img src="адрес аватара" alt="аватар 3" border="0" style="width: 100%;"></a></td>
<td width="20%" align="center"><a href="ссылка на профиль"><img src="адрес аватара" alt="аватар 4" border="0" style="width: 100%;"></a></td>
<td width="20%" align="center"><a href="ссылка на профиль"><img src="адрес аватара" alt="аватар 5" border="0" style="width: 100%;"></a></td>
</tr>
</table>
</div>
</div>
</td>
</tr></tbody>
</table>
</center>
<script type="text/javascript">
$(document).ready(function() {
$("td.#MenuTxT div.submenutext").hide();
<!--$(".tabs span:first").addClass("active").show(); -->
$("td.#MenuTxT div.submenutext:first").show();
$("div.#menu span").click(function() {
$("div.#menu span").removeClass("tabactive");
$(this).addClass("tabactive");
$("td.#MenuTxT div.submenutext").hide();
var activeDiv = $(this).attr("alt");
$("div."+activeDiv).fadeIn();
return false; });
});
</script>