Cara Membuat Beautiful Slide Out Navigation
- Cara membuatnya :
- Login blogger
- Rancangan, Edit Html, 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/AVvXsEhT2PLNksGQQfLLfgfC3ss9dy71U5ppQZUGbXaxDcbqTjXkso2WraDQwPrjCj-tOEvOgahyphenhyphenDfqkKhsr8e78nckvsM-PAyRW4_gmoOCKh-POv-D3WDBnna2g_U08tv7dXamZKx8GNU0Pp48/s1600/home.png);
}
ul#navixed .about a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2VrfaY-sZTLU9mFpMXz1GOjARMWmZFIrrojOuSFXve83q3W1hlGt77h7BSqwJAGSWtHFFrOlwm6evrsFWoyiLejSR3VVqA9VPwov7igS61sMIIOPIJWqIraP9FZ7Z0kHlx3wftIcGMn4/s1600/id_card.png);
}
ul#navixed .search a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT1sFYEVtK-NjRfIlHpTDiL_F_IiTen0vuhJeAcc_3Zmd3hAeqfMMLmkU0Z0gcQQj1q7612Qfu1CR-C_deSIHVUnYymyqMKO0mJsy-YDHiGmuNGl7kkxarWjBvXp9S4VDWkDKLV-eH_4c/s1600/search.png);
}
ul#navixed .podcasts a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgylZNrY2VJMsNOBVxJi328CI9yp2EB6-pRyXytQ4Dv0QhD3FSjGRWlpeSm4EKAaXaOf8PvFcG7Zj8boRhmpoLDlUldp1YxCNP5feMrjbA_MCMX1SLDJ9PhwTDW5_truzp2E7MW-Btre7E/s1600/ipod.png);
}
ul#navixed .rssfeed a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxC7TsHpWwzMd33uEWyCR4OxWl23V7RUG4jQ7DU-uRn-E2YiNnXnV9Auqdn1iN7y2tTKpDuZ_MEC6XOgoNGz8LmgBFw0jgufs4qZYXBL8vFopJpuiv7ong5_X8V3dnPvt-7ZLv4xZKvy8/s1600/rss.png);
}
ul#navixed .photos a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoeJjza_wfG2Mg-ZC3-07OnadUd1aunlUudEVuAfqkpMI75sHS_51BIjhiVS2VMJK4lCKsu5RIZRdxmIN4I_gw4-Spywmh4t-PZ6zy8WpA1CywfSkrgjYucuQj8dzbi7m5tRpXv4tCyPo/s1600/camera.png);
}
ul#navixed .contact a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf1uBf1kUibVoipfn1vOx8POXVlt4dsZ9ifgCG3XVEOdFUucj77WHpd0vW0WX-Y0Cnp1pOl0G7Ma25u6zoy5DeGlAz-yXzZGyVZ-1-x7-k4QlhMjR7fbqQW0wdKjgIFYuEvf16ZSYgT4U/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;
$('#navixed a').each(function(){
$(this).stop().animate({
'marginTop':'-80px'
},d+=150);
});
$('#navixed > li').hover(
function () {
$('a',$(this)).stop().animate({
'marginTop':'-2px'
},200);
},
function () {
$('a',$(this)).stop().animate({
'marginTop':'-80px'
},200);
}
);
});
</script>
terakhir simpan cara pemanggilannya di atas kode <body>:
<ul id='navixed'>ket : silahkan ganti # dengan link yang anda inginkan
<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>
selesai... jangan lupa simpan template......
About this entry
Anda sedang membaca Cara Membuat Beautiful Slide Out Navigation.
Penulis : Oktri darmadi- Diterbitkan :
- di 02.07 on Selasa, 19 April 2011
- Kategori:
- Tips Blogger
- Tulisan Sebelumnya:
- Posting Lama
- Tulisan Selanjutnya:
- Posting Lebih Baru
Related Post
Artikel Cara Membuat Beautiful Slide Out Navigation ditulis oleh Oktri Darmadi. Kunjungi blog saya di http://http://oktri-blog.blogspot.com/
Terimakasih atas kunjungan Anda...
Senyum selalu... ^_^
Terimakasih atas kunjungan Anda...
Senyum selalu... ^_^
6 komentar:
kang oktri mw nanya soal ini. emang sudah biza keluar tmpilannya Beautiful Slide Out Navigation nya itu, tp kug gag da linkx, di klik gag bz, crax ngasih linkx gmna, trima kasih.
terimakasih banyak saya baru membuat blog tp masih belajar ..sangat-sangat membantuku semoga sukses selalu
trmksh tutorialnya gan...klo ada ksmptn mampir ya,krn blogku sedkit bnyk dipengaruhi oleh tutorial2 sampeyan..
http://www.jogjakunyaman.blogspot.com
misi numpang tanya bos,, kalau kitas ingin menghapus gambarnya dan kemudian,, hover dropnya mau dijadikan jd lbih pendek gmana tuh,,,
saran dan infonya,, :)
makasih kangg ilmunyaaaaaa
Kunjungan perdana,salam kenal.Blog yang bagus dengan tip yg mantap.Ane coba yach,makasih tipsnya.
Posting Komentar