Sunday, June 3, 2012

Bikin Slide Show Di Blogspot Dengan Script

Bagi sebagian blogger berkeinginan untuk menampilkan album gambar yang bisa bergerak atau slide show pictures namun belum tahu bagaimana caranya. Kalau belum tahu jangan sungkan untuk belajar, seperti ana ini yang masih belajar, bagi yang sudah mahir silahkan kalau mau nambahin, kasih kritik saran yang membangun atau kripik singkongnya juga boleh, wuihihi,, dan bagi antum yang ingin belajar bersama membuat slide gambar ini, ayo dah kita belajar bersama,, yuk mari...

Mungkin banyak trik yang bisa digunakan untuk mengkonfigurasi slide dalam sebuah blog, ya salah satunya adalah trik berikut ini dimana trik ini sebenarnya sudah umum, banyak ditemui dalam setiap pembelajaran pembuatan slide, ya tidak mengapa kalau kita ikut ambil pelajaran didalamnya, he, he,

Berikut langkah-langkahnya :
A. Langkah Pertama
1.Bismillah.. ( Biasalah namanya juga muslim )

2.Login masuk ke dasbor blog antum
3.Pilih menu Template  

4.Perhatian..!! Trik ini bersinggungan dengan script blog antum, untuk jaga-jaga maka backup dulu script blog antum, caranya :
   a. Klik tombol cadangkan/pulihkan
    b. Download / Unduh Template Lengkap
     c. Simpan di tempat antum inginkan..

5. Oke ,backup sudah selesai maka kita lanjutkan belajar bersama kita.. selanjutnya klik Edit HTML

6. Jika ada peringatan dari blogspot berikut ini, maka kllik saja tombol Lanjutkan

7. Kita akan masuk ke menu HTML blog kita, kemudian centang Expand Template Widget

8. Kemudian cari kode <head>, untuk mempermudah gunakan ctrl+F pada keyboard, kemudian ketikkan <head> pada kotak find kemudian enter.
9.Setelah ketemu, copy paste script berikut dan letakkan persis di bawah kode <head> tadi :
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'/> <script type='text/javascript'> //<![CDATA[ $(document).ready(function() { //Execute the slideShow, set 6 seconds for each images slideShow(3000); }); function slideShow(speed) { //append a LI item to the UL list for displaying caption $('ul.slideshow').append('<li id="slideshow-caption" class="caption"><div class="slideshow-caption-container"><h3></h3><p></p></div></li>'); //Set the opacity of all images to 0 $('ul.slideshow li').css({opacity: 0.0}); //Get the first image and display it (set it to full opacity) $('ul.slideshow li:first').css({opacity: 1.0}); //Get the caption of the first image from REL attribute and display it $('#slideshow-caption h3').html($('ul.slideshow a:first').find('img').attr('title')); $('#slideshow-caption p').html($('ul.slideshow a:first').find('img').attr('alt')); //Display the caption $('#slideshow-caption').css({opacity: 0.7, bottom:0}); //Call the gallery function to run the slideshow var timer = setInterval('gallery()',speed); //pause the slideshow on mouse over $('ul.slideshow').hover( function () { clearInterval(timer); }, function () { timer = setInterval('gallery()',speed); } ); } function gallery() { //if no IMGs have the show class, grab the first image var current = ($('ul.slideshow li.show')? $('ul.slideshow li.show') : $('#ul.slideshow li:first')); //Get next image, if it reached the end of the slideshow, rotate it back to the first image var next = ((current.next().length) ? ((current.next().attr('id') == 'slideshow-caption')? $('ul.slideshow li:first') :current.next()) : $('ul.slideshow li:first')); //Get next image caption var title = next.find('img').attr('title'); var desc = next.find('img').attr('alt'); //Set the fade in effect for the next image, show class has higher z-index next.css({opacity: 0.0}).addClass('show').animate({opacity: 1.0}, 1000); //Hide the caption first, and then set and display the caption $('#slideshow-caption').animate({bottom:-70}, 300, function () { //Display the content $('#slideshow-caption h3').html(title); $('#slideshow-caption p').html(desc); $('#slideshow-caption').animate({bottom:0}, 500); }); //Hide the current image current.animate({opacity: 0.0}, 1000).removeClass('show'); } //]]> </script> <style type='text/css'> ul.slideshow { list-style:none; width:600px; height:240px; overflow:hidden; position:relative; margin:0; padding:0; font-family:Arial,Helvetica,Trebuchet MS,Verdana; ; } ul.slideshow li { position:absolute; left:0; right:0; } ul.slideshow li.show { z-index:500; } ul img { width:600px; height:240px; border:none; } #slideshow-caption { width:600px; height:70px; position:absolute; bottom:0; left:0; color:#fff; background:#000; z-index:500; } #slideshow-caption .slideshow-caption-container { padding:5px 10px; z-index:1000; } #slideshow-caption h3 { margin:0; padding:0; font-size:16px; } #slideshow-caption p { margin:5px 0 0 0; padding:0; } </style>
   Untuk ukuran bisa antum rubah widht dan heightnya sesuai keinginan antum..

10. Simpan Template

B.Langkah Kedua
1. Klik menu Tata Letak

2. Tambah Gadget pilih HTML/Java Script

3. Copy paste script berikut :
<ul class="slideshow"> <li><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifKqMrhvqgmMcdFaZsnsIabv6ZYYWkQnZewHJpm2tCuCod62IYehy29O81m6SO6WR20pNPeLJPCjYa1ZnLT72fUQStHanvMe8TmeVoPDZQDyfWtHdK5uPoNWRUbnGsV9lOue-0_gbdif4/s1600/1.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifKqMrhvqgmMcdFaZsnsIabv6ZYYWkQnZewHJpm2tCuCod62IYehy29O81m6SO6WR20pNPeLJPCjYa1ZnLT72fUQStHanvMe8TmeVoPDZQDyfWtHdK5uPoNWRUbnGsV9lOue-0_gbdif4/s1600/1.jpg" title="This is featured post 1 title" alt="Replace This Text With Your Featured Post 1 Description." /></a></li> <li><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTbwbzFDCbTw6v9l_RyAetyEZuemSc_nbgv5efr6FclxWcubOMJToscS3ntA5ZguBlEJ8gPUkVFMBdWCuvNnk1_488uIzWJisrA188AJ1m2Yfo6cy7fCfxsjBCVmOHUcNNxvunpSBbijs/s1600/2.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTbwbzFDCbTw6v9l_RyAetyEZuemSc_nbgv5efr6FclxWcubOMJToscS3ntA5ZguBlEJ8gPUkVFMBdWCuvNnk1_488uIzWJisrA188AJ1m2Yfo6cy7fCfxsjBCVmOHUcNNxvunpSBbijs/s1600/2.jpg" title="This is featured post 2 title" alt="Replace This Text With Your Featured Post 2 Description." /></a></li> <li><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFS7hWm5GRUJscRuL4QxlwYXK0Hn1jWkhfHlW0n68XZKqIbDAyLKplOUMmiW63dPs5dcpioVnUZWme9qicpuYPgb8l8N_iSpJYTgbu85DKMHkXDNz_Tf7gYysGW6pFZsNVQcZ8SkexwIk/s1600/3.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFS7hWm5GRUJscRuL4QxlwYXK0Hn1jWkhfHlW0n68XZKqIbDAyLKplOUMmiW63dPs5dcpioVnUZWme9qicpuYPgb8l8N_iSpJYTgbu85DKMHkXDNz_Tf7gYysGW6pFZsNVQcZ8SkexwIk/s1600/3.jpg" title="This is featured post 3 title" alt="Replace This Text With Your Featured Post 3 Description." /></a></li> <li><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMA8o3PYDKjifFteDI-g_ykiLiuOxdLeUJXF9aUbVklcMznMzCZEYCKU-pRvQ1pm6WWzR4OFu7MuyeK6pnie63-a4E5Qr5gaDYMs0yjc78waBYjec7IS_056ZJGClrubaNeU9qcHIMH_8/s1600/4.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMA8o3PYDKjifFteDI-g_ykiLiuOxdLeUJXF9aUbVklcMznMzCZEYCKU-pRvQ1pm6WWzR4OFu7MuyeK6pnie63-a4E5Qr5gaDYMs0yjc78waBYjec7IS_056ZJGClrubaNeU9qcHIMH_8/s1600/4.jpg" title="This is featured post 4 title" alt="Replace This Text With Your Featured Post 4 Description." /></a></li> </ul>
   Silahkan rubah kode script yang berwarna merah sesuai URL upload gambar slide antum.

4. Simpan dan tempatkan dimana antum suka.
5. Semoga bermanfaat, barakallahu fiikum.

0 comments:

Post a Comment