Version 7 (modified by nickboz, 10 years ago) |
---|
<script src="/js/jquery-1.10.2.js"></script> <script src="/js/bootstrap.js"></script> <script src="/js/prism.js"></script>
<script> $(function(){ var shrinkHeader = 80; $(window).scroll(function() {
var scroll = getCurrentScroll(); if ( scroll >= shrinkHeader ) {
$('.navbar-brand').addClass('navbar-shrink'); $('.navbar-inverse').addClass('navbar-colored'); $('.navbar-nav').css({"margin":"0 0 0 15px"}); $(".sun").show();
$('.navbar-lower').addClass('navbarlower-colored');
} else{
$('.navbar-brand').removeClass('navbar-shrink'); $('.navbar-inverse').removeClass('navbar-colored'); $('.navbar-nav').css({"margin":"25px 0 0 25px"}); $(".sun").hide(); $('.navbar-lower').removeClass('navbarlower-colored');
}
}); function getCurrentScroll() {
return window.pageYOffset; }
});
$('.navbar-lower').affix({
offset: {top: 60}
});
$(".ztdim a.k").hover(function() { $(this).find('img').attr('src','/img/zoo-cheetah-w.png');}, function () {$(this).find('img').attr('src', '/img/zoo-cheetah.png');});
$(".ztdim a.s").hover(function() { $(this).find('img').attr('src','/img/zoo-pinguin-w.png');}, function () {$(this).find('img').attr('src', '/img/zoo-pinguin.png');});
$(".ztdim a.a").hover(function() { $(this).find('img').attr('src','/img/zoo-monkey-w.png');}, function () {$(this).find('img').attr('src', '/img/zoo-monkey.png');});
$(".ztdim a.c").hover(function() { $(this).find('img').attr('src','/img/zoo-yak-w.png');}, function () {$(this).find('img').attr('src', '/img/zoo-yack.png');});
</script>