.::иίмвuźźεя вļ∆¢к::. .::↗ ςσммύπίτγ ↖::.. Diberdayakan oleh Blogger.

Minggu, 03 April 2011

Custom Images kwicks menu with jquery

    Cara membuatnya :
  1. Login blogger
  2. Rancangan, Edit Html, Cari kode ]]></b:skin>
  3. 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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpy4i05g_LfQbGurB2NR09NIK0TlCIJr74kQ3v3PM2BBwrjvXGNHM4gVRjMK3f79k2tSXAWZdkxGMYFprAcqEo4hiesysXW0mkyC1KBFgOWNFNbSZ-CjI-ANaKZZMV1XQPICxjPDAFitA/s1600/landscapes.jpg) repeat scroll 0%;
 
}

.jimgMenu ul li#people a {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimRFmH7eHTjJIVhvl0_hFIJKfPdUn39AEic0AErp4A6jCPEMXbt0Ay38Pxt1A3sz7MdgxTefohiR8QF6S2jQFUFIvNcKuHGNGYweNoaoQKuVqjLx7vpmm78MQX59bIawOqLjZypnRcj6c/s1600/people.jpg) repeat scroll 0%;

}

.jimgMenu ul li#nature a {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV4H5tKXlAJXl0DHSAiPuuLgSsRVKjkqG6-E3q_Ekcgjuib00TcPliiPmWltkTbe0VKHJwseB5TRnOpgwgIo0bzj0dxtoeMbm8CPqQw82MJwp6tqy-zQ-gb0O3tOPWJr6ugaDlMePPErQ/s1600/nature.jpg) repeat scroll 0%;
 
}

.jimgMenu ul li#abstract a {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwujVh2fpotaa0ESrr0j59hJbkXt86IhFaFbDYM_E6rWPO4E9ZduWgEtlR8_U1Ii56knkfExN-uxGVnigKpZAJ0JIneBwHHo88aln3MKvASgoBVkFWF37vjDyCHDYJVTWOKtf8aqBcExM/s1600/abstract.jpg) repeat scroll 0%;

}

.jimgMenu ul li#urban a {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP7nIDo6hQt6l9ZjFbrIX42UtKEW0MsLGVjAsUJTcxNB-dc0j1oyzpSnnt40F8R5lmaJpV_l57tqVOLk6LvGnqlLAfALoP2aNqApJq6QcVEaqITVE1xeAW5dcAnHWsrCpAh_R7UWQY0rU/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.....

  • dan yang terakhir cara penyimpanannya pada Html (sesuai keinginan kawan-kawan tata letaknya):
<div class="jimgMenu">
  <ul class="jimgMenu">
    <li id="landscapes"><a href="#">Landscapes</a></li>
    <li id="people"><a href="#">People</a></li>
    <li id="nature"><a href="#">Nature</a></li>
    <li id="abstract"><a href="#">Abstract</a></li>
    <li id="urban"><a href="#">Urban</a></li>
  </ul>
</div>
  • selesai.......

Komentar :

ada 0 komentar ke “Custom Images kwicks menu with jquery”

Posting Komentar

Emoticon

:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} ~x( :-t b-( :-L x( =))
 

Siga-me

This Blog is proudly powered by Blogger.com | Template by Angga Leo Putra