Search
 
SCRIPT & CODE EXAMPLE
 

HTML

carousel with javascript

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  <style>
  .carousel-inner > .item > img,
  .carousel-inner > .item > a > img {
    width: 70%;
    margin: auto;
  }
  </style>
</head>
<body>

<div class="container">
  <br>
  <div id="myCarousel" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
      <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
      <li data-target="#myCarousel" data-slide-to="1"></li>
      <li data-target="#myCarousel" data-slide-to="2"></li>
      <li data-target="#myCarousel" data-slide-to="3"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">

      <div class="item active">
        <img src="img_chania.jpg" alt="Chania" width="460" height="345">
        <div class="carousel-caption">
          <h3>Chania</h3>
          <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
        </div>
      </div>

      <div class="item">
        <img src="img_chania2.jpg" alt="Chania" width="460" height="345">
        <div class="carousel-caption">
          <h3>Chania</h3>
          <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
        </div>
      </div>
    
      <div class="item">
        <img src="img_flower.jpg" alt="Flower" width="460" height="345">
        <div class="carousel-caption">
          <h3>Flowers</h3>
          <p>Beautiful flowers in Kolymbari, Crete.</p>
        </div>
      </div>

      <div class="item">
        <img src="img_flower2.jpg" alt="Flower" width="460" height="345">
        <div class="carousel-caption">
          <h3>Flowers</h3>
          <p>Beautiful flowers in Kolymbari, Crete.</p>
        </div>
      </div>
  
    </div>

    <!-- Left and right controls -->
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
      <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
  </div>
</div>

</body>
</html>
Comment

javascript carousel slider

<script src="C:UserssimrathDesktopwep desingn and deve cw1java script.js">
Comment

PREVIOUS NEXT
Code Example
Html :: data tables in html 
Html :: mat-tab height 100 
Html :: save html file in mysql 
Html :: htmlspecialchars(): Argument #1 ($string) must be of type string, array given 
Html :: HTML <figure and <figcaption Elements 
Html :: how to delete a html tag element in react 
Html :: what is ref in html 
Html :: create custum tage html 
Html :: onclick video popup in html codepen 
Html :: default php version ubuntu 20.04 
Html :: englais français 
Html :: code live html css online 
Html :: html ol vs ul 
Html :: display observable in html angular 
Html :: gjgug 
Html :: How to install Ubuntu 17.04 in VMWare Workstation 
Html :: duplicate mime type text/html nginx 
Html :: you may need an appropriate loader to handle this file type html 
Html :: html encrypt email from bots 
Html :: table con html 
Html :: How to create collapsable using pure Javascript 
Html :: html path svg stop 
Html :: form tab index skip readonly 
Html :: brackeys C# 
Html :: dont ignore space tag html 
Html :: how to add animated text in html 
Html :: make select option look like button 
Html :: membuat navbar html sederhana 
Html :: bootstrap 2 rows menu 
Html :: difference between body and main html 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =