Kegiatan 2 Maret 2016

Tutorial membuat Gallery
1. Seve dambar ini








2. Scrip Galery.html
<html>
<head>
<title>Bootstrap Example</title>
 
 
  <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"></link>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  <style>
  .carousel-inner > .item > img,
  .carousel-inner > .item > a > img {
      width: 70%;
      margin: auto;
  }
  </style>
 <title></title>
</head>
<body>
<div class="container">
  <br />
  <div class="carousel slide" data-ride="carousel" id="myCarousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
<li class="active" data-slide-to="0" data-target="#myCarousel"></li>
<li data-slide-to="1" data-target="#myCarousel"></li>
<li data-slide-to="2" data-target="#myCarousel"></li>
<li data-slide-to="3" data-target="#myCarousel"></li>
</ol>
<!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
      <div class="item active">
        <img alt="Chania" height="150" src="img_chania.jpg" width="150" />
      </div>
<div class="item">
        <img alt="Chania" height="150" src="img_chania2.jpg" width="150" />
      </div>
<div class="item">
        <img alt="Flower" height="150" src="img_flower.jpg" width="150" />
      </div>
<div class="item">
        <img alt="Flower" height="150" src="img_flower2.jpg" width="150" />
      </div>
</div>
<!-- Left and right controls -->
    <a class="left carousel-control" data-slide="prev" href="https://www.blogger.com/blogger.g?blogID=3653516982834282616#myCarousel" role="button">
      <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>
      <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" data-slide="next" href="https://www.blogger.com/blogger.g?blogID=3653516982834282616#myCarousel" role="button">
      <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>
      <span class="sr-only">Next</span>
    </a>
  </div>
</div>
</body>
</html>

0 Response to "Kegiatan 2 Maret 2016"

Posting Komentar