SELAMAT DATANG DI BLOG RAHMAT

Sunday, June 21, 2015

Membuat Gambar Berganti-ganti



CARA MEMBUAT BLOG-cara membuat blog  merupakan judul blog admin yang akan mengulas tentang cara membuat gambar slide show yang akan ditampilkan sebagai gambar pribadi atau juga untuk tempat pemasangan iklan pada blog anda.Jangan lupa juga Baca tentang resep masakan klik disini
 Dan perhatikan langkah-langkah berikut ini.
Cari kode :

</head>

copy script dibawah ini lalu paste di atas kode </head>

<script
src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'
type='text/javascript'></script>>
<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>
</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>


perhatikan ukuran gambar yang ada di kolom text area silahkan sesuaikan dengan ukuran yang sahabat kehendaki.
Untuk berikutnya yaitu menempatkan gambar di halaman baru yaitu di halaman posting atau get-get,
dibawah ini adalah scripnya :

<ul class="slideshow">
<li><a href="Link (url) Tujuan"><img
src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVs8Iiuk5R3W6jgNs9L8YevovWtT3Fz9LExIuN7MgOYxEUTh-U3hIY8NYcNEPFw1METjqRdT67YEFYi-tIW1uzD9zLk0azEb6Fr17YLfdVay9XUPZmGI9e-mi9J5O6c52qwCFoQOoR92E/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="Link (url) Tujuan"><img
src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9YN-2GIdCGHsktiytjAIjtliAhuFPyYoZnUwFtDCo8TGsYCCdVOs5emwl0xLWEw6GeygnCIn0-FqtOWQxGpV8rRfNQOdSr5wue8iXc0OE0EI-60twstpA4IZQ-TjCkAKzORZqyXrjqak/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="Link (url) Tujuan"><img
src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyrKtaaISKqqwND5YuSkS_NA-TX-7GlToZWQvmhBvz25sc_CiE36y64YiZxGGMyQnuUa1EJIQPAKUIp9kFo1NCyhsquTXoX7DRNc1FPEFMK68ewDRzpogRo-WBJ8AdYot0uHtLvLZmi7U/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="Link (url) Tujuan"><img
src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiwRw04Ps3AiElXoKhpuNxvfqR9ctnMLIQO7vcjsd8-d2UySf6wcnk-6HXTIqtuIWddFS2K5tnp2x10o5oTO-BXc6ky61FFV1zzweuGaIsHHFEzVBXt6dV10iLo-A8OV0FViEsHnS8dHc/s1600/4.jpg"
 title="This is featured post 4 title" alt="Replace This Text With Your
Featured Post 4 Description." /></a></li>
</ul>

Untuk tulisan Link (url) tujuan, di dalam textarea belum ditentukan =link arahan, silakan disesuaikan dengan keinginan kita
script diatas di copas dari http://campur-baurkim.com  dan sudah di coba pada template blogger standar ternyata tidak bisa atau memang admin yang kurang pandai, hii!? tapi kalau pada bloger modifikasi yah?? silahkan untuk di coba sendiri aja yaah!!?

CARA MEMBUAT BLOG-cara membuat blog  merupakan judul blog, admin mengucapkan banyak terimakasih pada teman-teman yang telah memberikan scriptnya untuk dipelajari.

 

No comments:

Post a Comment