Cara Membuat Beautiful Slide Out Navigation di Blog

    Cara membuatnya :
  1. Login blogger
  2. Rancangan, Edit Html, Cari kode ]]></b:skin>
  3. 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/AVvXsEh38SAf8l6HBGvGHFCEBvjb-4vi95_Azi9MvPCS_s3ocm5XwjNhZQK1zSIMonPoOgk-N6cwRUB2cy3YuZkoX0VnRrx5vd7u65vTaNK2QSfntPOKabLN_Vc_D3zJvUwAeel-kZkL36-C8l8/s1600/home.png);
}
ul#navixed .about a      {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-IGn_pA_RPnORtZR4ywiH4sinfZ1jstMHfDfzcDJAs3urpVV2M8t509k0lAdcmbZuz9oqFxLQpOzfFqDyDVmXc1tfOftPqrO1m5PdS4rW5O44WN2NIp2PdGz3cizBQW4b-85e5zFHuCA/s1600/id_card.png);
}
ul#navixed .search a      {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyGRUJPFn-B4g6kt_vXc-oU1RqBbXF-dDnwMHr8A9jA3iD1WPakM5TVw61UlxN9RJ48p9wvy9ZTgEL2DMiQb3A4OYSRuVSfQhVFPqhgvt-yeRC53xXs9hyUJxGmAJ6fzjKKBQ24xX5r-E/s1600/search.png);
}
ul#navixed .podcasts a      {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguxgFlmoyoc7xK6YjfSsmGR6tuM8JHSsso6avBZIGwf_KcRgm_FZb0Y8ZX2it6y-rrngKzXC3fWcwWv2vAc4i1UcLpRKTOL-kKbg66ldh6e0ool1QtPZ0nAUYLwMs1odyknTNAnKtcdMM/s1600/ipod.png);
}
ul#navixed .rssfeed a   {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidJVFVLyUVebKIxZZA5lc6YXxvBwMEWNHVvvhCctYFT9Zw9YDojOVGFEOgb-q7oGfZrVRBZuqEkxTiBhTITal652Dmz2E6ZaCOq82TpuIamaSmsOh016iKGZ07TLeWjCXWNpf-Ri4BYAY/s1600/rss.png);
}
ul#navixed .photos a     {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4kYOp8Pog5eGtQNzppzPdb55hXeYGnvpYE1S_KW5uqlsyG4_s3q18MmWSbDhHvljleC0no0SeCBEJh_JqCJy92WO59gZbwo9Stsg2Ujgpd-ICt-zWgzoE2-8frU7MW1CiagMVJeyMsp0/s1600/camera.png);
}
ul#navixed .contact a    {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1V-UjkQrpsakqA3lVWnc7HI9jH8iG6lhw4LSO78v59KWPaLD1_Tc5X8KRZ0eGICg8tqXYrN5s5UbbqarlXR62lBhnR-cvh_yMyoH4GaDCqag5dQqVpWQf3pxOo9faDJTfPXhN7ITopU8/s1600/mail.png);

dan simpan script ini di atas 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>

terakhir simpan cara pemanggilannya 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 yang anda inginkan

selesai... jangan lupa simpan template...... 

Friend source : http://tipsbelajar-blog.blogspot.com/2011/04/cara-membuat-beautiful-slide-out.html 
Tag : Tutorial
Komentar Facebook
0 Komentar untuk "Cara Membuat Beautiful Slide Out Navigation di Blog"

Back To Top