Sabtu, 02 Juli 2011

Cara Membuat Beautiful Slide Out Navigation

    Cara membuat tampilan menu seperti diatas:
  1. Login keblogger anda
  2. Masuk Rancangan, Edit Html, kemudian
1. Yang Peratama Cari kode ]]></b:skin> :
    Dan Simpan kode berikut diatasnya : 
/*----------------
Beautiful Slide Out Navigation
-------------------------------*/
.headerfixed
        {
            width:600px;
            height:56px;
            position:absolute;
            top:50%;
            left:10px;
            background:#fff url(title.png) no-repeat top left;
        }
ul#navixed {
    position: fixed;
    margin: 0px;
    padding: 0px;
    top: 0px;
    right: 10px;
    list-style: none;
    z-index:999999;
    width:721px;
}
ul#navixed li {
    width: 103px;
    display:inline;
    float:left;  
}
ul#navixed li a {
    display: block;
    float:left;
    margin-top: -2px;
    width: 100px;
    height: 25px;
    background-color:#000;
    background-repeat:no-repeat;
    background-position:50% 10px;
    border:1px solid #BDDCEF;
    -moz-border-radius:0px 0px 10px 10px;
    -webkit-border-bottom-right-radius: 10px;
    -webkit-border-bottom-left-radius: 10px;
    -khtml-border-bottom-right-radius: 10px;
    -khtml-border-bottom-left-radius: 10px;
    text-decoration:none;
    text-align:center;
    padding-top:80px;
    opacity: 0.7;
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}
ul#navixed li a:hover{
     background-color:#000;
}
ul#navixed li a span{
    letter-spacing:2px;
    font-size:11px;
    color:#FFF;
     
}
ul#navixed .home a{
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLfqX851QKGHLLlEXUkJ0j2Tr9UoO-CPFUim1ffjxnaQF44Vqf0SNmXE2pHDBbWcPDyYcGH5a4n3xiWArHmJYOUAo_PsvVJ00z-NqtBFzBHbVVMtp3gflTnGBVhJtU05Y8ahbx-6elE4I/s1600/home.png);
}
ul#navixed .about a      {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgddfvmFUx0r0r5rbpxyZJrSZ3jpz9NJzhvGK2RWptSYx0KUN6UBlj7QAYDCWgiTJcp9ugnxHmp1EKsLYoekS9UANbmXsTerS0zp4aAU4qXk6fY8I8JYxcaDx-L56_UUUTapQvyAetEpSg/s1600/id_card.png);
}
ul#navixed .search a      {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheamymgCAZNmHSMJpjT4NBNw3b9dKwDOUovrR4yWYNOgYlZA05nC3lME98a4TEdcAUN3_OGhDr9YUB_C4mYa4R5lrUrFOazRPPspVoNCCYNl2XRRvYPRUOg1kI43ccaXaeURvUMcA_8QY/s1600/search.png);
}
ul#navixed .podcasts a      {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdgQmnQMfbphTFVOOw2KqcQ4Y2DGYSfHB3BtV66-QEq4ehVs27krTteK6Lt5MX5Kgpau0L13Bprwa1co7YlkXZKfJlOm89KXSgdQNUxHse6EN0d16ez_VKhOQZsvnM9ZK25lntUw9AUhU/s1600/ipod.png);
}
ul#navixed .rssfeed a   {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiixCr27JE9qBvczL7gVR3zbUwmxAAI54rhQf1AF2-wfQg1-pP-yUXDtG49xJyZQzNMEh9GbI2RCEechBNYKRhfpEMZXcCrqIobH8RNqb8mRn2XprWIvwCtV2vYHJtM0azuc-Uix57HjpU/s1600/rss.png);
}
ul#navixed .photos a     {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSBCmQzofYBSnbTfNWhOLvo3BL6uVxgx5Tlcjf2X_dSwSEkechlxUEPTl66zDW37-Gvx5Ggn9LUH709nLB_cBZ_RSUvx5njeMtjr3rN9jftFAu_t4SCMciF1Z6a7t8g8BnvUds6eCo_MU/s1600/camera.png);
}
ul#navixed .contact a    {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE9Di-kUBzqBBwkwIyZJhomoFRNI5BL8uKGmpEz2t-XiGN765UFx9-WGHGsBNhAR_F_zoc7eL6ZTMMkgk5mXpxrHF_ciuVF07SiW5d3RX8n4zsH_LvrWhCRHK5AvWFbv5CIslLCLWPa0U/s1600/mail.png);

2. Cari kode </head>,,kemudian copy paste code tersebut tepat diatas kode </head> :

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'/>
    <script src='http://kangdadang.googlecode.com/files/jcolor.js'/>
<script type='text/javascript'>
            $(function() {
                var d=300;
                $(&#39;#navixed a&#39;).each(function(){
                    $(this).stop().animate({
                        &#39;marginTop&#39;:&#39;-80px&#39;
                    },d+=150);
                });

                $(&#39;#navixed &gt; li&#39;).hover(
                function () {
                    $(&#39;a&#39;,$(this)).stop().animate({
                        &#39;marginTop&#39;:&#39;-2px&#39;
                    },200);
                },
                function () {
                    $(&#39;a&#39;,$(this)).stop().animate({
                        &#39;marginTop&#39;:&#39;-80px&#39;
                    },200);
                }
            );
            });
        </script>

3.Cari code <body>:kemudian simpan tepat di atas kode <body>:

<ul id='navixed'>
            <li class='home'><a href='#'><span>Home</span></a></li>
            <li class='about'><a href='#'><span>About</span></a></li>
            <li class='search'><a href='#'><span>Search</span></a></li>
            <li class='photos'><a href='#'><span>Photos</span></a></li>
            <li class='rssfeed'><a href='#'><span>Rss Feed</span></a></li>
            <li class='podcasts'><a href='#'><span>Podcasts</span></a></li>
            <li class='contact'><a href='#'><span>Contact</span></a></li>
        </ul>
ket : silahkan ganti # dengan link anda

    Tidak ada komentar:

    Posting Komentar