...

View Full Version : Menu.



celovec2
02-15-2007, 12:11 PM
Hello. Should the mouse goes with buttons. Button should remain white.

<script type="text/javascript">
window.onload = function(e) {
montre('smenu1');
}
function montre(id) {
var d = document.getElementById(id);
for (var i = 1; i<=10; i++) {
if (document.getElementById('smenu'+i)) {
document.getElementById('smenu'+i).style.display='none';
}
}
if (d) {d.style.display='block';}
}
//-->
</script>
<style>
#smenus1:hover, #smenus2:hover {
background-color: #ffffff;
border-bottom-width:0px;
}
#smenus1 {
background-color: #EFEFEF;
border-right:solid #CECECE 1px;
border-bottom:solid #CECECE 1px;
text-decoration:none;
padding:0px 7px 1px 7px; /* top, right, bottom, left */
}
#smenus2 {
background-color: #EFEFEF;
border-left:solid #CECECE 1px;
border-bottom:solid #CECECE 1px;
text-decoration:none;
padding:0px 7px 1px 6px; /* top, right, bottom, left */
}
#extra a:hover {
color: #909090;
}
</style>
<div class="block" id="extra" style="width:185px"><h2>sfsfs</h2>
<a href="#" onmouseover="montre('smenu1');" id="smenus1">Сейча</a><a href="#" onmouseover="montre('smenu2');" id="smenus2">Новички</a>
<ul id="smenu1">
<li>fdgfdgfdg</li>
<li>fdgfdgfdg</li>
<li>fdgfdgfdg</li>
<li>fdgfdgfdg</li>
<li>fdgfdgfdg</li>
<li>fdgfdgfdg</li>
</ul>
<ul id="smenu2">
<li>fdgfddsfsdfgfdg</li>
<li>fdgssfdgfdg</li>
<li>fdgdsfsdffdgfdg</li>
<li>fdgfdgfdg</li>
<li>fdgdsfsdffdgfdg</li>
<li>fdgddfdgfdg</li>
</ul>
</div>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum