Tuesday, April 3, 2012

Kwicks Menu Whit jQuery

Share on :
Pagi Sobat Danz , Kali ini saya akan memberi tau caranya membuat Kwicks Menu Whit jQuery. Langsung saja sob di praktekin gimana Caranya dan langkah"nya .. 

Cara Membuatnya :
  • Login Blogger :
  • Rancangan, Edit Html , Cari Code ]]></b:skin> :
  • Dan Simpan Code Berikut :

/* ---------------
kwicks navigation effect
---------------------------------- */
.kwicks {
list-style: none;
position: relative;
margin: 0;
padding: 0;
}
.kwicks li{
display: block;
overflow: hidden;
padding: 0;
cursor: pointer;
float: left;
width: 125px;
height: 40px;
margin-right: 0px;
background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvlypW95E6qKvj2R-Bmu2RBCD7S-MOGaoEpDIUsXy9jXdJVvAE3f4x38KygLf_WjhMHrW6ulmOdHtKnb5Tb-BVQ4GQlKCvThYVeVJvIKSxSBMcfv6WqfkVdnXK-Ee4D5awJF-R8dIA8-Q/s1600/kwicks_sprite.png);
background-repeat:no-repeat;
}
.kwicks a{
display:block;
height:40px;
text-indent:-9999px;
outline:none;
}
#kwick1 {
background-position:0px 0px;
}
#kwick2 {
background-position:-200px 0px;
}
#kwick3 {
background-position:-400px 0px;
}
#kwick4 {
background-position:-600px 0px;
}
#kwick5 {
background-position:-800px 0px;
}
#kwick6 {
background-position:-1000px 0px;
}
#kwick1.active, #kwick1:hover {
background-position: 0 bottom;
}
#kwick2.active, #kwick2:hover{
background-position: -200px bottom;
}
#kwick3.active, #kwick3:hover {
background-position: -400px bottom;
}
#kwick4.active, #kwick4:hover {
background-position: -600px bottom;
}
#kwick5.active, #kwick5:hover {
background-position: -800px bottom;
}
#kwick6.active, #kwick6:hover {
background-position: -1000px bottom;
}
#kwick1 a{
background-image:url(end.jpg);
background-repeat:no-repeat;
background-position: left 0px;
}
#kwick1 a:hover{
background-position: left -80px;
}
#kwick4 a{
background-image:url(end.jpg);
background-repeat:no-repeat;
background-position: right -40px;
}
#kwick4 a:hover{
background-position: right -120px;
}
  • Selanjutnya simpan kode berikut diatas kode </head> :
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
<script language='javascript' src='http://kangdadang.googlecode.com/files/jquery.kwicks-1.5.1.pack.js' type='text/javascript'></script>
<script language='javascript' src='http://kangdadang.googlecode.com/files/jquery.easing.1.3.js' type='text/javascript'></script>
<script type="text/javascript">

  • Simpan kode berikut diatas kode </body> :
<script type='text/javascript'>
 function my_kwicks(){
    $('.kwicks').kwicks({
  duration: 300,   
        max: 200,  
        spacing:  0  
    });
}  
$(document).ready(function(){     
 my_kwicks();
});
</script>

  • Simpan pemanggilannya pada HTML di bawah tag Head-nav(Sesuaikan dengan template kawan):
<ul class='kwicks'>
<li id='kwick1'><a href='#' title='Halaman utama'>Beranda</a></li>
<li id='kwick2'><a href='#'>Downloads</a></li>
<li id='kwick3'><a href='#'>Forum</a></li>
<li id='kwick4'><a href='#'>Tentang</a></li>
<li id='kwick5'><a href='#'>Facebook</a></li>
<li id='kwick6'><a href='#'>Tutorial Blogger</a></li>
</ul>

  •  Simpan template
Untuk Image nya bisa kawan-kawan gantisesuai keinginan

See Also:

0 komentar:

Post a Comment

Thanks For Visit Here ... Dont Forget To Leave Your Comment ... !!!

Danz-Soft © 2008 Template by:
SkinCorner