Neema Header

by Koubenec

HTML

<script src="http://www.marcatectura.com/wp-content/jquery-1.2.6.js" type="text/javascript"></script>

<div id="headr"><div id="menubase"></div><div id="buttons"><div class="item"><img class="icon" src="http://neemainternational.org/wp-content/uploads/2012/10/Star_1.png">ABOUT THE KIDS</div><div class="item"><img class="icon" src="http://neemainternational.org/wp-content/uploads/2012/10/Star_1.png">WHAT'S GOING ON</div><div class="item"><img class="icon" src="http://neemainternational.org/wp-content/uploads/2012/10/Star_1.png">NEEMA BLOG</div><div class="item"><img class="icon" src="http://neemainternational.org/wp-content/uploads/2012/10/Star_1.png">SUPPORT THE KIDS</div><div class="item"><img class="icon" src="http://neemainternational.org/wp-content/uploads/2012/10/Star_1.png"></div><div class="item"><img class="icon" src="http://neemainternational.org/wp-content/uploads/2012/10/Star_1.png"></div><div class="item"><img class="icon" src="http://neemainternational.org/wp-content/uploads/2012/10/Star_1.png"></div><div class="item"><img class="icon" src="http://neemainternational.org/wp-content/uploads/2012/10/Star_1.png"></div></div></div>

CSS

#headr {
    background-image: url('http://neemainternational.org/wp-content/uploads/2012/10/Hdr_pic_12.jpg');
    background-position: middle top;
    width: 1000px;
    height: 500px;
}

#menubase {
    background-color: #824c24;
    opacity: 0;
    width: 988px;
    height: 490px;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 5px;
    padding-bottom: 5px;
}

#buttons {
    position: absolute;
    top: 0px;
    width: 1000px;
    height: 500px;
}

.item {
    width: 237px;
    height: 235px;
    float: left;
    background-color: transparent;
    /* background-image: url('http://neemainternational.org/wp-content/uploads/2012/10/Diag_pattern_1.png');
    background-repeat: repeat-x repeat-y;
    background-position: top left; */
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    font-size: 23px;
    color: #824c24;
    font-family: 'jump_startregular', cursive;
}

.icon {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 10px;
}

@font-face {
    font-family: 'jump_startregular';
    src: url('http://www.neemainternational.org/wp-content/uploads/fonts/jstart-webfont.eot');
    src: url('http://www.neemainternational.org/wp-content/uploads/fonts/jstart-webfont.eot?#iefix') format('embedded-opentype'),
         url('http://www.neemainternational.org/wp-content/uploads/fonts/jstart-webfont.woff') format('woff'),
         url('http://www.neemainternational.org/wp-content/uploads/fonts/jstart-webfont.ttf') format('truetype'),
         url('http://www.neemainternational.org/wp-content/uploads/fonts/jstart-webfont.svg#jump_startregular') format('svg');
    font-weight: normal;
    font-style: normal;

JavaScript

$(document).ready(function() {
    $("#menubase").hover(function() {
        $(this).stop().animate({
            "opacity": "0"
        }, 'fast');
    }, function() {
        $(this).stop().animate({
            "opacity": "0.8"
        }, 'fast');   
    });
    $("#menubase").hover(function() {
        $(this).stop().animate({
            "opacity": "0.8"
        }, 'fast');
    }, function() {
        $(this).stop().animate({
            "opacity": "0"
        }, 'fast');   
    });
});