Witam oto kod menu
<li><a href="welcome-to-silent-hill">Strona Główna
</a></li> <li><a href="#">Silent Hill
</a> <li><a href="welcome-to-silent-hill-1">Historia
</a></li> <li><a href="silent-hill-harry-mason">Postacie
</a></li> <li><a href="silent-hill-weapons-bronie">Bronie
</a></li> <li><a href="silent-hill-potwory-bossowie">Potwory
</a></li> <li><a href="silent-hill-zakonczenia-endings">Zakończenia
</a></li> <li><a href="silent-hill-soundtracks">Soundtracks
</a></li> <li><a href="silent-hill-galeria-screeny">Galeria
</a></li> <li><a href="solucja-silent-hill-1">Solucja
</a></li> <li><a href="#">Silent Hill 2
</a> <li><a href="welcome-to-silent-hill-2">Historia
</a></li> <li><a href="silent-hill-2-james-sunderland">Postacie
</a></li> <li><a href="silent-hill-2-weapons-bronie">Bronie
</a></li> <li><a href="silent-hill-2-potwory-bossowie">Potwory
</a></li> <li><a href="silent-hill-2-zakonczenia-endings">Zakończenia
</a></li> <li><a href="silent-hill-2-soundtracks">Soundtracks
</a></li> <li><a href="silent-hill-2-galeria-screeny">Galeria
</a></li> <li><a href="solucja-silent-hill-2">Solucja
</a></li> <li><a href="#">Silent Hill 3
</a> <li><a href="welcome-to-silent-hill-3">Historia
</a></li> <li><a href="silent-hill-3-heather-morris">Postacie
</a></li> <li><a href="silent-hill-3-weapons-bronie">Bronie
</a></li> <li><a href="silent-hill-3-potwory-bossowie">Potwory
</a></li> <li><a href="silent-hill-3-zakonczenia-endings">Zakończenia
</a></li> <li><a href="silent-hill-3-soundtracks">Soundtracks
</a></li> <li><a href="silent-hill-3-galeria-screeny">Galeria
</a></li> <li><a href="solucja-silent-hill-3">Solucja
</a></li> <li><a href="#">SH 4: The Room
</a> <li><a href="welcome-to-silent-hill-4-the-room">Historia
</a></li> <li><a href="silent-hill-4-the-room-henry-townshend">Postacie
</a></li> <li><a href="silent-hill-4-the-room-weapons-bronie">Bronie
</a></li> <li><a href="silent-hill-4-the-room-potwory-bossowie">Potwory
</a></li> <li><a href="silent-hill-4-the-room-zakonczenia-endings">Zakończenia
</a></li> <li><a href="silent-hill-4-the-room-soundtracks">Soundtracks
</a></li> <li><a href="silent-hill-4-the-room-galeria-screeny">Galeria
</a></li> <li><a href="solucja-silent-hill-4-the-room">Solucja
</a></li> <li><a href="#">SH: Origins
</a> <li><a href="welcome-to-silent-hill-origins">Historia
</a></li> <li><a href="silent-hill-origins-travis-grady">Postacie
</a></li> <li><a href="silent-hill-origins-weapons-bronie">Bronie
</a></li> <li><a href="silent-hill-origins-potwory-bossowie">Potwory
</a></li> <li><a href="silent-hill-origins-zakonczenia-endings">Zakończenia
</a></li> <li><a href="silent-hill-origins-soundtracks">Soundtracks
</a></li> <li><a href="silent-hill-origins-galeria-screeny">Galeria
</a></li> <li><a href="solucja-silent-hill-origins">Solucja
</a></li> <li><a href="#">SH: Homecoming
</a> <li><a href="welcome-to-silent-hill-homecoming">Historia
</a></li> <li><a href="silent-hill-homecoming-alex-shepherd">Postacie
</a></li> <li><a href="silent-hill-homecoming-weapons-bronie">Bronie
</a></li> <li><a href="silent-hill-homecoming-potwory-bossowie">Potwory
</a></li> <li><a href="silent-hill-homecoming-zakonczenia-endings">Zakończenia
</a></li> <li><a href="silent-hill-homecoming-soundtracks">Soundtracks
</a></li> <li><a href="silent-hill-homecoming-galeria-screeny">Galeria
</a></li> <li><a href="solucja-silent-hill-homecoming">Solucja
</a></li> <li><a href="#">Shattered Memories
</a> <li><a href="welcome-to-silent-hill-shattered-memories">Historia
</a></li> <li><a href="silent-hill-shattered-memories-harry-mason">Postacie
</a></li> <li><a href="silent-hill-shattered-memories-weapons-bronie">Bronie
</a></li> <li><a href="silent-hill-shattered-memories-potwory-bossowie">Potwory
</a></li> <li><a href="silent-hill-shattered-memories-zakonczenia-endings">Zakończenia
</a></li> <li><a href="silent-hill-shattered-memories-soundtracks">Soundtracks
</a></li> <li><a href="silent-hill-shattered-memories-galeria-screeny">Galeria
</a></li> <li><a href="solucja-silent-hill-shattered-memories">Solucja
</a></li> <li><a href="#">SH: Downpour
</a> <li><a href="welcome-to-silent-hill-downpour">Historia
</a></li> <li><a href="silent-hill-downpour-murphy-pendleton">Postacie
</a></li> <li><a href="silent-hill-downpour-weapons-bronie">Bronie
</a></li> <li><a href="silent-hill-downpour-potwory-bossowie">Potwory
</a></li> <li><a href="silent-hill-downpour-zakonczenia-endings">Zakończenia
</a></li> <li><a href="silent-hill-downpour-soundtracks">Soundtracks
</a></li> <li><a href="silent-hill-downpour-galeria-screeny">Galeria
</a></li> <li><a href="solucja-silent-hill-downpour">Solucja
</a></li>
Oto kod reklamy:
<div id="google_ad_banner">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Reklama SHH3-->
style="display:inline-block;width:200px;height:200px"
(adsbygoogle = window.adsbygoogle || []).push({});
Oto kod JS przyklejania menu do górnej belki
<script>$(document).ready(function() {
var stickyNavTop = $('#top').offset().top;
var stickyNav = function(){
var scrollTop = $(window).scrollTop();
if (scrollTop > stickyNavTop) {
$('#top').addClass('sticky');
} else {
$('#top').removeClass('sticky');
}
};
stickyNav();
$(window).scroll(function() {
stickyNav();
});
});
$(window).load(function(){
$('.anime').fadeOut(3000).delay(1000).fadeIn(3000);
});
</script>
Oto kod CSS:
#google_ad_banner
{
z-index: -99999;
}
#top
{
position: relative;
z-index: 99999;
}
.sticky
{
width:100%;
position:fixed;
top:0;
z-index: 99999;
}
Menu w tym momencie nie jest zasłonięte jak dodałem (position: relative;) ale nie działa przyklejanie menu do górnej belki. Jak usunę tą opcje (position: relative;) to menu jest zasłonięta przez reklamy ale działa przyklejanie menu. Jak połączyć te dwie opcje razem.
Ten post edytował hiper0007 15.02.2017, 13:42:18