Ads 468x60px

Senin, 19 Desember 2011

Widget Beautiful Slide Out Navigation di Blog

Widget 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 Widget 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/AVvXsEhViEInG4KsqlbTFNOZjgkJfsSMivgYZ3u0f3ZPOHrsM-9jRXDVdcEmnPCw4Lty6ZfxaBa_Be3htDRfj_ZhvZRtAC9jx9ib_417wgTIlB_KKrbQ3Dk5HHBmJn96kxxUghz8ulilCgG8JIM/s1600/home.png);     }     ul#navixed .about a      {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0Ah48v0Q-WOdcohcHZooG-8RffpQ5-cvqdoBRuyKCwJ5CARk6CYMTZn6Z9FYfFS5qIzw8JZmsO5xNv67uNAWQH7sSnM_oN5K7J3xpxII_q_z0olFLQjzBOtxN2oisljCrtjc_EYbN8q0/s1600/id_card.png);     }     ul#navixed .search a      {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1cnuqyc8kVtJv12PYgImKfJ2puh3up8mc7biTpxX1YWJxrz-CINqedCRxNytCcjTj-dxJ8xMCxNlgtkEes95G-x2mzWO4h-BO0lyB3Wol03fDJ9QEJD4nE8en-3pLvTfm1rmbaV2APvs/s1600/search.png);     }     ul#navixed .podcasts a      {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNTfcow_nAbPH4hv1xOOMbn7noEtYEAqi2Df_y5mYiRF9FrPEwiZ-pYqxpJsQx-jgINki_yLyEhXY2-TQkSgIdGgZI3eSTA8bUCw4UL-KRQ-iEm3W0Av4FG-2TJu8pFhYxaHtLeStp9AA/s1600/ipod.png);     }     ul#navixed .rssfeed a   {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVyOuwycb2IrVzXgAF-0s6-o43ygoHOJINgPU0akJx4VXk-AlOiMD8WOb5XilyRbbRgYBRFsC9W4-zACwlep3iuzgSk_tlED4S9i7UQg9D6NlAr3LJj4YSWU8ptdSEsXNCTOgU38ES0aM/s1600/rss.png);     }     ul#navixed .photos a     {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWxHFthyphenhyphenXuY64Z6LzEWduPSUT5Xwhcj5Y-bxmZsGeAXXy0d4RUOsxxWL3SVdl125mpK70XIuiyvQ54ydwFAiCiVBfit7r3YkYO9GDfS2hDPZo7OhBhPBeruji4mndPLsXcEljllpKCqXk/s1600/camera.png);     }     ul#navixed .contact a    {         background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWUZXWijKV5Q1RjrH3oJlIEQQ4oemt2HFVHOt5umbfHOCJXKKNZmCwEo84YdMvLPikC7swfhuJrDRIyHeEqxCOhqYsyb4Kmz0Pv5M3AeYkf1cOnqmp9cGFb-2fQ1SqxYVYvVIVXQPr2VQ/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 ^_^

0 komentar:

Posting Komentar