Jumat

Cara Membuat Navigasi Efek Slide Out dengan jQuery

بسم الله الرحمن الرحيم 


Cara Membuat Beautiful Slide Out Navigation di Blog. Setelah sebelumnya dulu saya share mengenai Cara Membuat Navigasi Efek Slide Out dengan jQuery

2 cara diatas sebenernya tidak punya banyak perbedaan, karena cara diatas sama-sama menggunakan efek slide JQuery. Tapi yang saya share sekarang ini slidenya tempatnya bagian atas, lain halnya dengan yang sebelumnya yang letaknya disamping kiri.

ok langsung aja ya ...
Cara Membuat Beautiful Slide Out Navigation di Blog
  1. login blog
  2. rancangan -> edit HTML
  3. cari kode ]]></b:skin>
  4. taruh kode dibawah ini diatas kode ]]></b:skin>
  5.     /*----------------     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/AVvXsEhaCnSXri0d5pJ90LNV0Dd6NlN9Dlz6ZQCi2abgpQAOEIH8v-ZQgWyriTyflJVDKky8cnXhgj-RKu6hDbZKme-mwPqKowEdKAHheANlPKxr9wJHl_2IZBqKSnzySfZy18CZfhssX9qfEtQ/s1600/home.png);     }     ul#navixed .about a      {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwfrnkQHDRaLF79dWOrREANP-dqN_a25qIy3U5ZgRrKqxzEyl03_HpGjAio48eCdh3EeeybvlWa5-oABnBNhTpA6-jD998m2MFYBL-ZOO236e_iOIhopatKNw1aNnleffKTBgFWbdzFs8/s1600/id_card.png);     }     ul#navixed .search a      {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpF6YBlLq0BaEoNVjYMBm_DPfZMc_QRfpAQlF3oMMzYffSEJMmcTCwOwTcx1zq73Y7VHVxOIttZUnXNer7URMKNn5wx6gyUjzjTDjdwpDbzdFXy3gu4ur-KMd9uy8YCDo1iuRDHyRJOak/s1600/search.png);     }     ul#navixed .podcasts a      {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixaiZi432-zfcYIUybPqadHPfBh__e7fcZv24hV-7-yhDq8cNUO_CIdzTK5g2i261k34ORnAlPtgWka7k9EXCP6tJjSAh0KULb7mBN9WksjA0FISQwmi3uMd-nFHPTLI_UzAOduUGggw0/s1600/ipod.png);     }     ul#navixed .rssfeed a   {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2ha42J7H5Awzj-E9gL1Io1SE1oRrEVvOOxCzFmJLFGE1ftKO1RfhkBhRoRvTHPam-GkZhDQ4I2K9IW26KKCfgKcsFSYOR05Mq5cACOoZVKe4GCOO13gjpVPJy6D4i8PNjZEfLy6zeSYI/s1600/rss.png);     }     ul#navixed .photos a     {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHiPvbANhrGvoudSAIqF4hSP72AWb6HI1sjdU6e3xQ3dTWVT1qVmzn1F-4nnUl6CVBjevMu05-p9oq1yhJTQevVo-3sJDq6gEw4ymYAtzC3yUJuE6f-nnTWYYNYHkpO8xOP8i59Agv-sE/s1600/camera.png);     }     ul#navixed .contact a    {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzTvdcCleFL102uQifjOLBVXgPYmj_R52akKf0exBOu_UV4sSYIVmyne5lke8JnK8pKYzIX1nr-FQPYE83V3A1tpneKGX36b1JmfUyQw5wrx45gQ97wjr-OjzDaULVilZ3qUDyJ84av4E/s1600/mail.png); 
  6. lalu cari kode </head>
  7. taruh kode dibawah ini diatas kode </head>
  8.     <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>
  9. cari lagi kode yang seperti ini <body>
  10. lalu taruh kode dibawah ini tepat diatas kode <body>
  11. <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>
  12. simpan

NB :
ganti # dengan link yang sobat inginkan

Good Luck ^_^

Label:

0 Komentar:

Posting Komentar

^_*cHat-cHeat*_^

Berlangganan Posting Komentar [Atom]

<< Beranda