- Cara membuatnya :
- Login blogger
- Rancangan, Edit Html, Cari kode ]]></b:skin>
- Dan Simpan kode berikut diatasnya :
/* ---------------
Custom image kwicks with jquery
---------------------------------- */
.jimgMenu {
position:relative;
margin: 0px 0px 0px 50px;
padding: 0px;
width:475px;
height:200px;
overflow: hidden;
}
.jimgMenu ul {
list-style: none;
margin: 0px;
padding: 0px;
display: block;
height: 200px;
position: relative;
}
.jimgMenu ul li {
width: 95px;
float: left;
display: block;
overflow: hidden;
}
.jimgMenu ul li a {
text-indent: -1000px;
background:#fff repeat scroll 0%;
border-right: 2px solid #fff;
cursor:pointer;
display:block;
overflow: hidden;
height: 200px;
}
.jimgMenu ul li#landscapes a {
background: url(https://lh3.googleusercontent.com/-yOYJDwkwZBQ/TYiQ6Sk5OWI/AAAAAAAAAZE/QZMf5409454/s1600/landscapes.jpg) repeat scroll 0%;
}
.jimgMenu ul li#people a {
background: url(https://lh4.googleusercontent.com/-5TMg6GybLjk/TYiRG_DgMPI/AAAAAAAAAZM/GYC8rZtPXRg/s1600/people.jpg) repeat scroll 0%;
}
.jimgMenu ul li#nature a {
background: url(https://lh4.googleusercontent.com/-MFglwAv-hdg/TYiRCaHuRzI/AAAAAAAAAZI/Sf1kP1SbHtQ/s1600/nature.jpg) repeat scroll 0%;
}
.jimgMenu ul li#abstract a {
background: url(https://lh4.googleusercontent.com/-VAQciB4U8H8/TYiQykpZiTI/AAAAAAAAAZA/gGpVoIAhUss/s1600/abstract.jpg) repeat scroll 0%;
}
.jimgMenu ul li#urban a {
background: url(https://lh3.googleusercontent.com/-wTnSGXAwSqo/TYiRN2Cjp2I/AAAAAAAAAZQ/RrKt_rA7r50/s1600/urban.jpg) repeat scroll 0%;
border-right-style: none;
}
Custom image kwicks with jquery
---------------------------------- */
.jimgMenu {
position:relative;
margin: 0px 0px 0px 50px;
padding: 0px;
width:475px;
height:200px;
overflow: hidden;
}
.jimgMenu ul {
list-style: none;
margin: 0px;
padding: 0px;
display: block;
height: 200px;
position: relative;
}
.jimgMenu ul li {
width: 95px;
float: left;
display: block;
overflow: hidden;
}
.jimgMenu ul li a {
text-indent: -1000px;
background:#fff repeat scroll 0%;
border-right: 2px solid #fff;
cursor:pointer;
display:block;
overflow: hidden;
height: 200px;
}
.jimgMenu ul li#landscapes a {
background: url(https://lh3.googleusercontent.com/-yOYJDwkwZBQ/TYiQ6Sk5OWI/AAAAAAAAAZE/QZMf5409454/s1600/landscapes.jpg) repeat scroll 0%;
}
.jimgMenu ul li#people a {
background: url(https://lh4.googleusercontent.com/-5TMg6GybLjk/TYiRG_DgMPI/AAAAAAAAAZM/GYC8rZtPXRg/s1600/people.jpg) repeat scroll 0%;
}
.jimgMenu ul li#nature a {
background: url(https://lh4.googleusercontent.com/-MFglwAv-hdg/TYiRCaHuRzI/AAAAAAAAAZI/Sf1kP1SbHtQ/s1600/nature.jpg) repeat scroll 0%;
}
.jimgMenu ul li#abstract a {
background: url(https://lh4.googleusercontent.com/-VAQciB4U8H8/TYiQykpZiTI/AAAAAAAAAZA/gGpVoIAhUss/s1600/abstract.jpg) repeat scroll 0%;
}
.jimgMenu ul li#urban a {
background: url(https://lh3.googleusercontent.com/-wTnSGXAwSqo/TYiRN2Cjp2I/AAAAAAAAAZQ/RrKt_rA7r50/s1600/urban.jpg) repeat scroll 0%;
border-right-style: none;
}
selanjutnya simpan script berikut tepat di atas kode </head> :
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://kangdadang.googlecode.com/files/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="http://kangdadang.googlecode.com/files/jquery-easing-compatibility.1.2.pack.js"></script>
<script type="text/javascript" src="http://kangdadang.googlecode.com/files/jquery.kwicks-1.5.1.pack.js"></script>
<script type="text/javascript">
$().ready(function() {
$('.jimgMenu ul').kwicks({max: 310, duration: 300, easing: 'easeOutQuad'});
});
</script>
simpan template.....<script type="text/javascript" src="http://kangdadang.googlecode.com/files/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="http://kangdadang.googlecode.com/files/jquery-easing-compatibility.1.2.pack.js"></script>
<script type="text/javascript" src="http://kangdadang.googlecode.com/files/jquery.kwicks-1.5.1.pack.js"></script>
<script type="text/javascript">
$().ready(function() {
$('.jimgMenu ul').kwicks({max: 310, duration: 300, easing: 'easeOutQuad'});
});
</script>
dan yang terakhir cara penyimpanannya pada Html (sesuai keinginan kawan-kawan tata letaknya):
selesai.......
Responses
0 Respones to "Kustom Gambar kwicks menu dengan jquery"
Post a Comment
Terima kasih telah membaca dan berkomentar Kustom Gambar kwicks menu dengan jquery, .