1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
include "config/koneksi.php";
?>
<div class="ribbed-indigo no-tablet-portrait no-phone">
<div class="container padding20 fg-white">
<div class="carousel bg-transparent no-overflow" id="slide">
<?php
$comot= mysql_query("SELECT * FROM setup_slide");
while($ngisi= mysql_fetch_array($comot)){
?>
<div class="slide">
<h2 class="fg-white"><?php echo $ngisi['judul']; ?></h2>
<?php
if ($ngisi['gambar']!=""){ ?>
<div class="place-right">
<img src="images/<?php echo $ngisi['gambar']; ?>"
alt="" class="span3"/>
</div>
<?php
}
?>
<div class="fg-white"><?php echo $ngisi['konten']; ?></div>
</div>
<?php
}
?>
</div>
<script>
$(function(){
$("#slide").carousel({
height: 210,
period: 5000,
duration: 1000,
effect: 'fade',
markers: {
show: true
}
});
})
</script>
</div>
</div>