Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how to insert slide show for my pictures for website

I have a desire to craft a picture slideshow for my website. With the intention of showcasing them in a slideshow format, I’ve embedded linked images. Regrettably, the functionality isn’t performing as anticipated.
appreciate your support as soon as possible

<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
  <ol class="carousel-indicators">
    <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
    <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
    <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
  </ol>
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img class="d-block w-100" src="1.pgn" alt="First slide">
    </div>
    <div class="carousel-item">
      <img class="d-block w-100" src="2.pgn" alt="Second slide">
    </div>
    <div class="carousel-item">
      <img class="d-block w-100" src="3.pgn" alt="Third slide">
    </div>
  </div>
  <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>

I have tried to put all images in one directory

<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
  <ol class="carousel-indicators">
    <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
    <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
    <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
  </ol>
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img class="d-block w-100" src="1.pgn" alt="First slide">
    </div>
    <div class="carousel-item">
      <img class="d-block w-100" src="2.pgn" alt="Second slide">
    </div>
    <div class="carousel-item">
      <img class="d-block w-100" src="3.pgn" alt="Third slide">
    </div>
  </div>
  <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Upon reviewing your code, I’ve identified that the image formats are incorrect. Aside from this issue, everything else appears to be in order. Please modify all picture extensions to PNG.

<div class="carousel-inner">
    <div class="carousel-item active">
      <img class="d-block w-100" src="1.png" alt="First slide">
    </div>
    <div class="carousel-item">
      <img class="d-block w-100" src="2.png" alt="Second slide">
    </div>
    <div class="carousel-item">
      <img class="d-block w-100" src="3.png" alt="Third slide">
    </div>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading