-
Notifications
You must be signed in to change notification settings - Fork 0
/
0790_carousel.html
42 lines (42 loc) · 1.39 KB
/
0790_carousel.html
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
<!-- 画像スライド -->
<!-- 最初のアイテムには active を指定 -->
<!DOCTYPE html>
<html lang="ja">
<html>
<head>
<meta charset="UTF-8" />
<link href="assets/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
<script src="assets/jquery.js" type="text/javascript"></script>
<script src="assets/coffee-script.js" type="text/javascript"></script>
<script src="assets/bootstrap.js" type="text/javascript"></script>
<script type="text/coffeescript">
$ ->
$("#my_carousel").carousel
interval: 2000
</script>
</head>
<body>
<div class="container">
<div id="my_carousel" class="carousel slide span6">
<div class="carousel-inner">
<div class="item active">
<img src="assets/0001.jpg" alt="" />
<div class="carousel-caption">
<h4>タイトル1</h4>
<p>説明文</p>
</div>
</div>
<div class="item">
<img src="assets/0001.jpg" alt="" />
<div class="carousel-caption">
<h4>タイトル2</h4>
<p>説明文</p>
</div>
</div>
</div>
<a class="left carousel-control" href="#my_carousel" data-slide="prev">‹</a>
<a class="right carousel-control" href="#my_carousel" data-slide="next">›</a>
</div>
</div>
</body>
</html>