- Login ke blogger
- masuk ke Rancangan >> Elemen Halaman
- Setelah itu tambahkan sebuah gadget di tempat yang cukup lebar, karena widget ini mempunyai lebar sekitar 640px.
- Setelah itu Pilih yang HTML/Javascript dan masukan kode di bawah ini kedalamnya
<style type="text/css">#jFlowSlide{ background:#DBF3FD; font-family: Georgia; }
#myController { font-family: Georgia; padding:2px 0; width:640px; background:#3AB7FF; }
#myController span.jFlowSelected { background:#43A0D5;margin-right:0px; text-align:center; }
.slide-wrapper { padding: 5px; }
.slide-thumbnail { width:200px; height:190px; float:left; }
.slide-thumbnail img {max-width:200px; min-width:200px;max-height:190px; min-height:190px;}
.slide-details { width:420px; float:right; margin-left:10px;}
.slide-details h2 { font-size:1.5em; font-style: italic; font-weight:normal; line-height: 1; margin:0; }
.slide-details .description { margin-top:10px; }
.jFlowControl, .jFlowPrev, .jFlowNext { color:#FFF; cursor:pointer; padding-left:5px; padding-right:5px; padding-top:2px; padding-bottom:2px; }
.jFlowControl:hover, .jFlowPrev:hover, .jFlowNext:hover { background: #43A0D5; }
</style>
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="http://sites.google.com/site/tipsotrickscom/jquery/jquery.flow.1.2.auto.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#myController").jFlow({
slides: "#slides",
controller: ".jFlowControl", // must be class, use . sign
slideWrapper : "#jFlowSlide", // must be id, use # sign
selectedWrapper: "jFlowSelected", // just pure text, no sign
auto: true, //auto change slide, default true
width: "640px",
height: "200px",
duration: "900",
prev: ".jFlowPrev", // must be class, use . sign
next: ".jFlowNext" // must be class, use . sign
});
});
</script>
<div class="jflow-content-slider">
<div id="slides">
<!-- Slide #1 Starts-->
<div class="slide-wrapper">
<div class="slide-thumbnail">
<img alt="Okezine - Template" src="ALAMAT GAMBAR POSTINGAN KAMU"/>
</div>
<div class="slide-details">
<a href="ALAMAT URL POSTINGAN KAMU" title="JUDUL POSTINGAN">JUDUL POSTINGAN KAMU</a>
<div class="description">
DESKRIPSI DARI POSTINGAN KAMU
</div>
</div>
<div class="clear"></div>
</div>
<!-- Slide # 1 Ends -->
<!-- Slide #2 Starts-->
<div class="slide-wrapper">
<div class="slide-thumbnail">
<img alt="Okezine - Template" src="ALAMAT GAMBAR POSTINGAN KAMU"/>
</div>
<div class="slide-details">
<a href="ALAMAT URL POSTINGAN KAMU" title="JUDUL POSTINGAN">JUDUL POSTINGAN KAMU</a>
<div class="description">
DESKRIPSI DARI POSTINGAN KAMU
</div>
</div>
<div class="clear"></div>
</div>
<!-- Slide # 2 Ends -->
<!-- Slide #3 Starts-->
<div class="slide-wrapper">
<div class="slide-thumbnail">
<img alt="Okezine - Template" src="ALAMAT GAMBAR POSTINGAN KAMU"/>
</div>
<div class="slide-details">
<a href="ALAMAT URL POSTINGAN KAMU" title="JUDUL POSTINGAN">JUDUL POSTINGAN KAMU</a>
<div class="description">
DESKRIPSI DARI POSTINGAN KAMU
</div>
</div>
<div class="clear"></div>
</div>
<!-- Slide # 3 Ends -->
..
<!-- You can add as many slides as you want above this line -->
</div>
<div id="myController">
<span class="jFlowPrev">Prev</span>
<span class="jFlowControl">1</span>
<span class="jFlowControl">2</span>
<span class="jFlowControl">3</span>
<!-- Increase these numbers as with the increase in your number of slides above -->
<span class="jFlowNext">Next</span>
</div>
<div class="clear"></div>
</div>- Setelah itu simpan
Sumber :http://oketrik.blogspot.com
0 komentar: on "Cara Membuat Content Slider di Blogspot.com"
Posting Komentar