Welcome to kocomon.blogspot.com
go to my homepage
Go to homepage

Minggu, 18 September 2011

Membuat Image Slider Carousel di Blog

Kali ini saya bikin postingan Keren neh... "Bikin Image Slider". Image slider adalah bla.. bla.. blah... males njelasinnya,, kalo pengen tau apa itu Image slidder coba deh lihat di halaman blog saya,, keren kan.?... tenang aja tu gambarnya bisa diubah sesuka otak anda,, saya dapet Trik ini dari http://lorongilmu.blogspot.com/ 
Langsung aja deh.....


Langkah 1
Login ke Blogger 


Langkah 2
Klik Rancangan > Elemen Laman > Tambah Gaget


Langkah 3
Copy Paste ko dibawah ini.:

<script type="text/javascript">
stepcarousel.setup({
galleryid: 'mygallery', //id of carousel DIV
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'panel', //class of panel DIVs each holding content
autostep: {enable:true, moveby:1, pause:3000},
panelbehavior: {speed:500, wraparound:false, persist:true},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['http://1.bp.blogspot.com/_4HKUHirY_2U/S2FVY1DGRHI/AAAAAAAAAtc/BZkCromQU-I/prev.png', 30, 60 ], rightnav: ['http://4.bp.blogspot.com/_4HKUHirY_2U/S2FVWGJQahI/AAAAAAAAAtU/l-hiX3uOqBo/nxt.png', -55, 60 ]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
})
</script>
<div id="mygallery" class="stepcarousel">
<div class="belt">


<!-- Ganti link dengan link kalian -->

<div class="panel">
<a href="http://lorongilmu.blogspot.com/2011/06/free-ebook-wireless-kungfu-networking.html">
<img src="http://1.bp.blogspot.com/-E8I3xyQJiPQ/TeupAqrHhgI/AAAAAAAAASo/RknOdHWI5Wk/s1600/1.jpg" width="100px" height="135px" /></a>
</div>

<div class="panel">
<a href="http://lorongilmu.blogspot.com/2011/06/free-ebook-computer-worm-1.html">
<img src="http://4.bp.blogspot.com/-81VMss0m8hc/Teu38YLL9xI/AAAAAAAAASs/rsJhjgsZJz4/s320/2.jpg" width="100px" height="135px" /></a>
</div>

<div class="panel">
<a href="http://lorongilmu.blogspot.com/2011/06/free-ebook-computer-worm-2.html">
<img src="http://1.bp.blogspot.com/-iGfjN3nQpRI/Teu51PjzXJI/AAAAAAAAASw/W4Gy7P5W0ao/s320/3.jpg" width="100px" height="135px" /></a>
</div>

<div class="panel">
<a href="http://lorongilmu.blogspot.com/2011/06/free-ebook-pembobol-kartu-kredit.html">
<img src="http://3.bp.blogspot.com/-BNod3fYuxhk/TezHfbaFRtI/AAAAAAAAAS0/kGF49ZtSjkU/s320/4.jpg" width="100px" height="135px" /></a>
</div>

<div class="panel">
<a href="http://lorongilmu.blogspot.com/2011/06/free-ebook-panduan-lengkap-memakai.html">
<img src="http://3.bp.blogspot.com/-BzeCtYoUfhE/TezWWgKA3HI/AAAAAAAAATA/LfY0cT86OO8/s320/6.jpg" width="100px" height="135px" /></a>
</div>

<div class="panel">
<a href="http://lorongilmu.blogspot.com/2011/06/free-ebook-chip-spesial-networking.html">
<img src="http://1.bp.blogspot.com/-CJtJtGc1Sfs/TezdIhq-ScI/AAAAAAAAATE/NuiexuEifmg/s320/7.jpg" width="100px" height="135px" /></a>
</div>

<div class="panel">
<a href="http://lorongilmu.blogspot.com/2011/06/free-ebook-tutorial-windows-server-2003.html">
<img src="http://3.bp.blogspot.com/-Z8si66gtojE/Tezh2EwG_KI/AAAAAAAAATI/gm5cCI-W-Go/s1600/8.jpeg" width="100px" height="135px" /></a>
</div>

<div class="panel">
<a href="http://lorongilmu.blogspot.com/2011/06/free-ebook-beginning-microsoft-visual.html">
<img src="http://2.bp.blogspot.com/-s-vkZ_AtJH4/Te9suRCdJXI/AAAAAAAAATU/MmUmA__Zhyw/s1600/8.jpg" width="100px" height="135px" /></a>
</div>


</div>
</div>


Langkah 4
Klik Simpan..  


Langkah 5
Klik edit HTML, Lalu cari kode ]]></b:skin>, Lalu tambahkan kode dibawah ini tepat diatas kode  ]]></b:skin> :


.carousel{
         float:left;
         margin: 0;
         padding:0px;
         }

 .carousel .widget {
         width: 720px;
         background:#c4d5ec;
         margin: 0;
         padding:0;
 }

 .carousel h2{
         display:none;
         }
 .stepcarousel{
         position: relative;
         overflow: scroll;
         width: 765px;
         height: 160px;
 }

 .stepcarousel .belt{
        position: absolute;
        left: 0;
        top: 0;
 }

 .stepcarousel .panel{
      float: left;
      overflow: hidden;
      margin: 5px 20px 5px 0px;
      width: 140px;
 }

 .stepcarousel .panel img{
      float: left;
      background:#940f04;
      margin: 5px;
      padding:5px;
      border:1px solid #ccc;
 }

 .stepcarousel .panel img:hover{
      background:#ffffff;
      }
.quickedit{display:none}

#under_header{
opacity: 100;

 }


Langkah 6
Jika sudah,  Copy kode dibawah ini tepat di bawah kode ]]></b:skin>


<script src='http://lorong-ilmu.googlecode.com/files/gallery1.js' type='text/javascript'/>
<script src='http://lorong-ilmu.googlecode.com/files/gallery2.js' type='text/javascript'/>

Langkah 7
Klik save. dan lihat hasilnya.... :)


Keterangan:
Ganti kode berwarna Merah dengan link gambar anda
Dan ganti kode berwana Biru dengan Link yang bersangkutan dengan gambar




Selamat mencoba.... :)

0 komentar:

Posting Komentar

Related Posts Plugin for WordPress, Blogger...

Sang Blogger

  © Free Inspiration Blog My Blog by RAInDY Blog

Back to TOP