Sabtu, 05 November 2011


    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/AVvXsEhc5Bf5YvySbIhhO9CO1VZvUrWkFf9kkaT95ns86XeGRfviCzBW3HHnGVLP_9ARb1GbeZP4n6eyyMmizF_Drv1KLORW1eBjwYy3LL8nyLIGi-hJqjJTOwRyhriYj6PmgyREagVhXEylPjI/s1600/home.png);
}
ul#navixed .about a      {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhclK8p7VFzS6Jb8OLJQeEQ8klMcEnXGotc4_WgP-EJJNCHqaZ782Ptp6Q5DouxbHFvNXNTVZKWy8r25blYhzS7dKbNtW9jBPVRsrAiD7kxUUm_zvwgDvqbSYgIq6g519YVl8kPRLtUsu4/s1600/id_card.png);
}
ul#navixed .search a      {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7PHOtzPPqjPRMmuIlZFiYC8EtAJ_vfMU5XndBcNBy7efmgQCh8UDOz5Rv6Wk1u6BrVin1q611LD0NEjHjVacy74QSIXEI85aTv_H_Re1hT5TdankYEkj9f3n2EgfPYgR3Gh3ajnpyako/s1600/search.png);
}
ul#navixed .podcasts a      {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOi9XLyiIlRsMnvlUyrVPAGVZ16m2FvKZhWzj6Acj1I9WZ_BMFdawT0q6LHn12QuYhFasVh50k4twm3fd_daLF7QQAOrYY_an1h3AMeHuInV9c9tghYFh1qQMsg0jGeIMM7B-KXqX-lGo/s1600/ipod.png);
}
ul#navixed .rssfeed a   {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNodPIkXl4owfiKUJHJeVabfNyXBuvNHXDexdJori7T-xFsDERNgG82JkKSZA5qB4gnSDudDJIX6rPN6bS8Iu8YTrjiYHK1gUrJWxi9-zrcFalAAvV7ifBV-JhTKt6dl51d4NYyKMphxE/s1600/rss.png);
}
ul#navixed .photos a     {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVo4jwISkRVRa6eS7ddfPwwL4_tz4_tUtmxY3r1QXIDaSVnhRpcw5MI-j_bKOTi3gCLPLpnT7w_mxrFzQc3cwo4PMmPJB8IcsCCIDN3nnTt7wQRM0wMMhojrAz3wPQ4x0s5roHncPl7gc/s1600/camera.png);
}
ul#navixed .contact a    {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuKtQ1MoZ8wLWxqOfOE0ybQCwG69zO_x4WjBeAUXUfqdTyr6iOn37GC7Hmo_5UnR1qOKXIwLvS3ucjJ3wBBB2XvDtmfIu0CKE7UYglkNF0QnlzfjOd-IRNrpQp33GCK7r_UzKoe8QjDVE/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......

2 komentar:

  1. Tipsnya sih ok punya gan.. Tapi blog ane sudah terlalu cukup lah kalo untuk code berbagi css or js. Berat... :)

    BalasHapus
  2. @berbagi kreativitas
    Haha
    ini buat org" yg membutuhkan saja gan....
    makasih udah berkunjung :D

    BalasHapus