You are on page 1of 2

<script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> function slideSwitch() { var $active = $('#slideshow DIV.active'); if ( $active.

length == 0 ) $active = $('#slideshow DIV:last'); var $next = $active.next().length ? $active.next() : $('#slideshow DIV:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1100, function() { $active.removeClass('active last-active'); }); } $(function() { setInterval( "slideSwitch()", 6000 ); }); </script> <!-- Sesuaikan style dengan desain halaman anda --> <style type="text/css"> #slideshow { position:relative; height:200px; padding:0px; margin:10px 0 -30px 0; } #slideshow DIV { position:absolute; top:0; left:0; z-index:8; opacity:0.0; height: 200px; background-color: #FFF; padding:0px; margin:0px; } #slideshow DIV.active { z-index:10; opacity:1.0; } #slideshow DIV.last-active { z-index:9; } #slideshow DIV IMG { height: 200px; display: block; border: 0; margin-bottom: 0px; } </style> <div id="slideshow"> <!-- Tambahkan gambar2 slide show disini -->

<div class="active"><img src="images/slide_p8m-1.png" alt="Produk Bisnis Onl ine" /></div> <div><img src="images/slide_p8m-2.png" alt="Penghasilan dari Internet" /></d iv> <div><img src="images/slide_p8m-3.png" alt="Bisnis online" /></div> <div><img src="images/slide_p8m-4.png" alt="Mencari uang" /></div> </div>

You might also like