jquery cycle slideshow images












1















My jQuery cycle slideshow doesn't work. I wrote the script in html but I can't work out how to get it working.





    $("#next").click(function() {
$(".cycle-slideshow").cycle('next');
});

$("#prev").click(function() {
$(".cycle-slideshow").cycle('prev');
});


.body-content {
width: 100%;
min-height: 100px;
float: left;
margin-top:25px;
}

.content-left{
width:63%;
float: left;
display: inline-block;
}

.content-right {
width: 34%;
float: right;
display: inline-block;
padding: 5px;
background-color: blue;
}

.slider {
width: 100%;
float: left;
display: inline-block;
position: relative;
}

.cycle-slideshow {
position: relative;
}

.cycle-overlay {
position: absolute;
bottom: 0;
left: 0;
background-color: #000;
color: #fff;
width: 100%;
display: inline-block;
line-height: 24px;
padding-left: 5px;
box-sizing: border-box;
}

.slider-control {
position: absolute;
top:25%;
z-index: 1000;
width: 100%;
}


.slider-control span {
width: 35px;
height: 35px;
display: inline-block;
text-align: center;
line-height: 35px;
background-color: #1111e1;
color: #fff;
cursor: pointer;
}

.slider-control span#next {
float: right;
}

.slider-control span#prev {
float: left;
}


<div class="body-content">
<div class="container">
<div class="content-left">
<div class="slider">
<div class="slider-control">
<span id="prev"><</span>
<span id="next">></span>
</div>
<div class="cycle-slideshow" data-cycle-fx="fade" data-cycle-slides="> div" data-cycle-timeout="2000">
<img src="images/slide1.jpg">
<div class="cycle-overlay">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris id pulvinar libero, quis aliquet nisi. Fusce ullamcorper, nisi ut porttitor cursus, lectus sem aliquet nulla, eget interdum nisl metus id ante.</div>
</div>
<div>
<img src="images/slide2.jpeg">
<div class="cycle-overlay">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris id pulvinar libero, quis aliquet nisi. Fusce ullamcorper, nisi ut porttitor cursus, lectus sem aliquet nulla, eget interdum nisl metus id ante.</div>
</div>
</div>
</div>
</div>
<div class="content-right">

</div>
</div>
</div>
<script src="js/jquery.cycle.all.js"></script>
<script src=js/jquery-3.3.1.min.js></script>



<script>

$("#next").click(function() {
$(".cycle-slideshow").cycle('next');
});

$("#prev").click(function() {
$(".cycle-slideshow").cycle('prev');
});


</script>
</body>
</html>









share|improve this question





























    1















    My jQuery cycle slideshow doesn't work. I wrote the script in html but I can't work out how to get it working.





        $("#next").click(function() {
    $(".cycle-slideshow").cycle('next');
    });

    $("#prev").click(function() {
    $(".cycle-slideshow").cycle('prev');
    });


    .body-content {
    width: 100%;
    min-height: 100px;
    float: left;
    margin-top:25px;
    }

    .content-left{
    width:63%;
    float: left;
    display: inline-block;
    }

    .content-right {
    width: 34%;
    float: right;
    display: inline-block;
    padding: 5px;
    background-color: blue;
    }

    .slider {
    width: 100%;
    float: left;
    display: inline-block;
    position: relative;
    }

    .cycle-slideshow {
    position: relative;
    }

    .cycle-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #000;
    color: #fff;
    width: 100%;
    display: inline-block;
    line-height: 24px;
    padding-left: 5px;
    box-sizing: border-box;
    }

    .slider-control {
    position: absolute;
    top:25%;
    z-index: 1000;
    width: 100%;
    }


    .slider-control span {
    width: 35px;
    height: 35px;
    display: inline-block;
    text-align: center;
    line-height: 35px;
    background-color: #1111e1;
    color: #fff;
    cursor: pointer;
    }

    .slider-control span#next {
    float: right;
    }

    .slider-control span#prev {
    float: left;
    }


    <div class="body-content">
    <div class="container">
    <div class="content-left">
    <div class="slider">
    <div class="slider-control">
    <span id="prev"><</span>
    <span id="next">></span>
    </div>
    <div class="cycle-slideshow" data-cycle-fx="fade" data-cycle-slides="> div" data-cycle-timeout="2000">
    <img src="images/slide1.jpg">
    <div class="cycle-overlay">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris id pulvinar libero, quis aliquet nisi. Fusce ullamcorper, nisi ut porttitor cursus, lectus sem aliquet nulla, eget interdum nisl metus id ante.</div>
    </div>
    <div>
    <img src="images/slide2.jpeg">
    <div class="cycle-overlay">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris id pulvinar libero, quis aliquet nisi. Fusce ullamcorper, nisi ut porttitor cursus, lectus sem aliquet nulla, eget interdum nisl metus id ante.</div>
    </div>
    </div>
    </div>
    </div>
    <div class="content-right">

    </div>
    </div>
    </div>
    <script src="js/jquery.cycle.all.js"></script>
    <script src=js/jquery-3.3.1.min.js></script>



    <script>

    $("#next").click(function() {
    $(".cycle-slideshow").cycle('next');
    });

    $("#prev").click(function() {
    $(".cycle-slideshow").cycle('prev');
    });


    </script>
    </body>
    </html>









    share|improve this question



























      1












      1








      1








      My jQuery cycle slideshow doesn't work. I wrote the script in html but I can't work out how to get it working.





          $("#next").click(function() {
      $(".cycle-slideshow").cycle('next');
      });

      $("#prev").click(function() {
      $(".cycle-slideshow").cycle('prev');
      });


      .body-content {
      width: 100%;
      min-height: 100px;
      float: left;
      margin-top:25px;
      }

      .content-left{
      width:63%;
      float: left;
      display: inline-block;
      }

      .content-right {
      width: 34%;
      float: right;
      display: inline-block;
      padding: 5px;
      background-color: blue;
      }

      .slider {
      width: 100%;
      float: left;
      display: inline-block;
      position: relative;
      }

      .cycle-slideshow {
      position: relative;
      }

      .cycle-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      background-color: #000;
      color: #fff;
      width: 100%;
      display: inline-block;
      line-height: 24px;
      padding-left: 5px;
      box-sizing: border-box;
      }

      .slider-control {
      position: absolute;
      top:25%;
      z-index: 1000;
      width: 100%;
      }


      .slider-control span {
      width: 35px;
      height: 35px;
      display: inline-block;
      text-align: center;
      line-height: 35px;
      background-color: #1111e1;
      color: #fff;
      cursor: pointer;
      }

      .slider-control span#next {
      float: right;
      }

      .slider-control span#prev {
      float: left;
      }


      <div class="body-content">
      <div class="container">
      <div class="content-left">
      <div class="slider">
      <div class="slider-control">
      <span id="prev"><</span>
      <span id="next">></span>
      </div>
      <div class="cycle-slideshow" data-cycle-fx="fade" data-cycle-slides="> div" data-cycle-timeout="2000">
      <img src="images/slide1.jpg">
      <div class="cycle-overlay">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris id pulvinar libero, quis aliquet nisi. Fusce ullamcorper, nisi ut porttitor cursus, lectus sem aliquet nulla, eget interdum nisl metus id ante.</div>
      </div>
      <div>
      <img src="images/slide2.jpeg">
      <div class="cycle-overlay">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris id pulvinar libero, quis aliquet nisi. Fusce ullamcorper, nisi ut porttitor cursus, lectus sem aliquet nulla, eget interdum nisl metus id ante.</div>
      </div>
      </div>
      </div>
      </div>
      <div class="content-right">

      </div>
      </div>
      </div>
      <script src="js/jquery.cycle.all.js"></script>
      <script src=js/jquery-3.3.1.min.js></script>



      <script>

      $("#next").click(function() {
      $(".cycle-slideshow").cycle('next');
      });

      $("#prev").click(function() {
      $(".cycle-slideshow").cycle('prev');
      });


      </script>
      </body>
      </html>









      share|improve this question
















      My jQuery cycle slideshow doesn't work. I wrote the script in html but I can't work out how to get it working.





          $("#next").click(function() {
      $(".cycle-slideshow").cycle('next');
      });

      $("#prev").click(function() {
      $(".cycle-slideshow").cycle('prev');
      });


      .body-content {
      width: 100%;
      min-height: 100px;
      float: left;
      margin-top:25px;
      }

      .content-left{
      width:63%;
      float: left;
      display: inline-block;
      }

      .content-right {
      width: 34%;
      float: right;
      display: inline-block;
      padding: 5px;
      background-color: blue;
      }

      .slider {
      width: 100%;
      float: left;
      display: inline-block;
      position: relative;
      }

      .cycle-slideshow {
      position: relative;
      }

      .cycle-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      background-color: #000;
      color: #fff;
      width: 100%;
      display: inline-block;
      line-height: 24px;
      padding-left: 5px;
      box-sizing: border-box;
      }

      .slider-control {
      position: absolute;
      top:25%;
      z-index: 1000;
      width: 100%;
      }


      .slider-control span {
      width: 35px;
      height: 35px;
      display: inline-block;
      text-align: center;
      line-height: 35px;
      background-color: #1111e1;
      color: #fff;
      cursor: pointer;
      }

      .slider-control span#next {
      float: right;
      }

      .slider-control span#prev {
      float: left;
      }


      <div class="body-content">
      <div class="container">
      <div class="content-left">
      <div class="slider">
      <div class="slider-control">
      <span id="prev"><</span>
      <span id="next">></span>
      </div>
      <div class="cycle-slideshow" data-cycle-fx="fade" data-cycle-slides="> div" data-cycle-timeout="2000">
      <img src="images/slide1.jpg">
      <div class="cycle-overlay">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris id pulvinar libero, quis aliquet nisi. Fusce ullamcorper, nisi ut porttitor cursus, lectus sem aliquet nulla, eget interdum nisl metus id ante.</div>
      </div>
      <div>
      <img src="images/slide2.jpeg">
      <div class="cycle-overlay">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris id pulvinar libero, quis aliquet nisi. Fusce ullamcorper, nisi ut porttitor cursus, lectus sem aliquet nulla, eget interdum nisl metus id ante.</div>
      </div>
      </div>
      </div>
      </div>
      <div class="content-right">

      </div>
      </div>
      </div>
      <script src="js/jquery.cycle.all.js"></script>
      <script src=js/jquery-3.3.1.min.js></script>



      <script>

      $("#next").click(function() {
      $(".cycle-slideshow").cycle('next');
      });

      $("#prev").click(function() {
      $(".cycle-slideshow").cycle('prev');
      });


      </script>
      </body>
      </html>






      jquery






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 21 '18 at 21:46









      Dessus

      1,86811122




      1,86811122










      asked Nov 21 '18 at 21:08









      Albenis KërqeliAlbenis Kërqeli

      61




      61
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53420500%2fjquery-cycle-slideshow-images%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53420500%2fjquery-cycle-slideshow-images%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Wiesbaden

          Marschland

          Dieringhausen